diff --git a/vlib/v/checker/tests/void_function_assign_to_string.vv b/vlib/v/checker/tests/void_function_assign_to_string.vv index 839d84d00c..fddd5fca80 100644 --- a/vlib/v/checker/tests/void_function_assign_to_string.vv +++ b/vlib/v/checker/tests/void_function_assign_to_string.vv @@ -1,4 +1,4 @@ -fn x(x,y int) { +fn x(x int,y int) { } fn main(){ diff --git a/vlib/v/tests/inout/compiler_test.v b/vlib/v/tests/inout/compiler_test.v index 3d4c3e5bab..73f22bf2cb 100644 --- a/vlib/v/tests/inout/compiler_test.v +++ b/vlib/v/tests/inout/compiler_test.v @@ -90,7 +90,7 @@ fn test_all() { assert total_errors == 0 } -fn normalize_panic_message(message, vroot string) string { +fn normalize_panic_message(message string, vroot string) string { mut msg := message.all_before('=========================================') msg = msg.replace(vroot + os.path_separator, '') msg = msg.trim_space() diff --git a/vlib/v/tests/repl/runner/runner.v b/vlib/v/tests/repl/runner/runner.v index bbee1a04ce..f8b3113ee3 100644 --- a/vlib/v/tests/repl/runner/runner.v +++ b/vlib/v/tests/repl/runner/runner.v @@ -34,14 +34,14 @@ pub fn full_path_to_v(dirs_in int) string { return vexec } -fn diff_files(file_result, file_expected string) string { +fn diff_files(file_result string, file_expected string) string { diffcmd := util.find_working_diff_command() or { return err } return util.color_compare_files(diffcmd, file_result, file_expected) } -pub fn run_repl_file(wd, vexec, file string) ?string { +pub fn run_repl_file(wd string, vexec string, file string) ?string { vexec_folder := os.dir(vexec) + os.path_separator fcontent := os.read_file(file) or { return error('Could not read file $file') @@ -60,8 +60,7 @@ pub fn run_repl_file(wd, vexec, file string) ?string { } os.rm(input_temporary_filename) result := r.output.replace('\r', '').replace('>>> ', '').replace('>>>', '').replace('... ', - '').replace(wd + os.path_separator, '').replace(vexec_folder, - '').replace('\\', '/').trim_right('\n\r') + '').replace(wd + os.path_separator, '').replace(vexec_folder, '').replace('\\', '/').trim_right('\n\r') if result != output { file_result := '${file}.result.txt' file_expected := '${file}.expected.txt' @@ -81,7 +80,7 @@ $diff } } -pub fn run_prod_file(wd, vexec, file string) ?string { +pub fn run_prod_file(wd string, vexec string, file string) ?string { file_expected := '${file}.expected.txt' f_expected_content := os.read_file(file_expected) or { return error('Could not read file $file')