diff --git a/vlib/v/builder/builder.v b/vlib/v/builder/builder.v index 617b796d8c..b72fcadfb5 100644 --- a/vlib/v/builder/builder.v +++ b/vlib/v/builder/builder.v @@ -313,7 +313,7 @@ fn (b &Builder) print_warnings_and_errors() { ferror := util.formatted_error(kind, err.message, err.file_path, err.pos) eprintln(ferror) if err.details.len > 0 { - eprintln('details: $err.details') + eprintln('Details: $err.details') } // eprintln('') if i > b.max_nr_errors { @@ -335,7 +335,7 @@ fn (b &Builder) print_warnings_and_errors() { ferror := util.formatted_error(kind, err.message, err.file_path, err.pos) eprintln(ferror) if err.details.len > 0 { - eprintln('details: $err.details') + eprintln('Details: $err.details') } // eprintln('') if i > b.max_nr_errors { diff --git a/vlib/v/checker/tests/fn_args.out b/vlib/v/checker/tests/fn_args.out index ab06e67a8b..98ac2cb25f 100644 --- a/vlib/v/checker/tests/fn_args.out +++ b/vlib/v/checker/tests/fn_args.out @@ -16,4 +16,4 @@ vlib/v/checker/tests/fn_args.vv:8:5: error: cannot use `fn (&int)` as `fn (int)` 7 | arr([5]!) 8 | fun(fn(i &int){}) | ~~~~~~~~~~~~ -details: ``'s expected fn argument: `` is NOT a pointer, but the passed fn argument: `i` is a pointer +Details: ``'s expected fn argument: `` is NOT a pointer, but the passed fn argument: `i` is a pointer diff --git a/vlib/v/checker/tests/non_matching_functional_args.out b/vlib/v/checker/tests/non_matching_functional_args.out index a89de0059b..7d155d033e 100644 --- a/vlib/v/checker/tests/non_matching_functional_args.out +++ b/vlib/v/checker/tests/non_matching_functional_args.out @@ -5,7 +5,7 @@ vlib/v/checker/tests/non_matching_functional_args.vv:27:6: error: cannot use `fn | ~~~~~~~~~~~~~~~~~~ 28 | t.rename() 29 | println(t.name) -details: `main.MyFn`'s expected fn argument: `zzzz` is NOT a pointer, but the passed fn argument: `t` is a pointer +Details: `main.MyFn`'s expected fn argument: `zzzz` is NOT a pointer, but the passed fn argument: `t` is a pointer vlib/v/checker/tests/non_matching_functional_args.vv:31:6: error: cannot use `fn (mut Table)` as `fn (Table)` in argument 1 to `sum` 29 | println(t.name) 30 | }) @@ -13,4 +13,4 @@ vlib/v/checker/tests/non_matching_functional_args.vv:31:6: error: cannot use `fn | ~~~ 32 | sum(yyy) 33 | } -details: `main.MyFn`'s expected fn argument: `zzzz` is NOT a pointer, but the passed fn argument: `mytable` is a pointer \ No newline at end of file +Details: `main.MyFn`'s expected fn argument: `zzzz` is NOT a pointer, but the passed fn argument: `mytable` is a pointer diff --git a/vlib/v/checker/tests/unimplemented_interface_b.out b/vlib/v/checker/tests/unimplemented_interface_b.out index 332f23214e..edb00d0eaf 100644 --- a/vlib/v/checker/tests/unimplemented_interface_b.out +++ b/vlib/v/checker/tests/unimplemented_interface_b.out @@ -4,4 +4,4 @@ vlib/v/checker/tests/unimplemented_interface_b.vv:13:6: error: `Cat` incorrectly 13 | foo(c) | ^ 14 | } -details: main.Animal has `name() string` +Details: main.Animal has `name() string` diff --git a/vlib/v/checker/tests/unimplemented_interface_c.out b/vlib/v/checker/tests/unimplemented_interface_c.out index c60a8facc2..43060d4cfc 100644 --- a/vlib/v/checker/tests/unimplemented_interface_c.out +++ b/vlib/v/checker/tests/unimplemented_interface_c.out @@ -4,4 +4,4 @@ vlib/v/checker/tests/unimplemented_interface_c.vv:12:6: error: `Cat` incorrectly 12 | foo(Cat{}) | ~~~~~ 13 | } -details: main.Animal has `name()` +Details: main.Animal has `name()` diff --git a/vlib/v/checker/tests/unimplemented_interface_d.out b/vlib/v/checker/tests/unimplemented_interface_d.out index c219ff8cd6..5e39c5eff3 100644 --- a/vlib/v/checker/tests/unimplemented_interface_d.out +++ b/vlib/v/checker/tests/unimplemented_interface_d.out @@ -4,4 +4,4 @@ vlib/v/checker/tests/unimplemented_interface_d.vv:12:6: error: `Cat` incorrectly 12 | foo(Cat{}) | ~~~~~ 13 | } -details: main.Animal has `speak(s string)` +Details: main.Animal has `speak(s string)` diff --git a/vlib/v/checker/tests/unimplemented_interface_e.out b/vlib/v/checker/tests/unimplemented_interface_e.out index 9ccd0bdf71..f388cb2d6f 100644 --- a/vlib/v/checker/tests/unimplemented_interface_e.out +++ b/vlib/v/checker/tests/unimplemented_interface_e.out @@ -5,11 +5,11 @@ vlib/v/checker/tests/unimplemented_interface_e.vv:12:6: error: `Cat` incorrectly | ~~~~~ 13 | _ = Animal(Cat{}) 14 | } -details: main.Animal has `speak(s string)` +Details: main.Animal has `speak(s string)` vlib/v/checker/tests/unimplemented_interface_e.vv:13:6: error: `Cat` incorrectly implements method `speak` of interface `Animal`: expected `string`, not `&string` for parameter 1 11 | fn main() { 12 | foo(Cat{}) 13 | _ = Animal(Cat{}) | ~~~~~~~~~~~~~ 14 | } -details: main.Animal has `speak(s string)` +Details: main.Animal has `speak(s string)` diff --git a/vlib/v/checker/tests/unimplemented_interface_f.out b/vlib/v/checker/tests/unimplemented_interface_f.out index 58b29e1fbf..3bdc2aca06 100644 --- a/vlib/v/checker/tests/unimplemented_interface_f.out +++ b/vlib/v/checker/tests/unimplemented_interface_f.out @@ -4,4 +4,4 @@ vlib/v/checker/tests/unimplemented_interface_f.vv:11:13: error: `Cat` incorrectl 11 | animals << Cat{} | ~~~~~ 12 | } -details: main.Animal has `speak(s string)` +Details: main.Animal has `speak(s string)` diff --git a/vlib/v/gen/cgen.v b/vlib/v/gen/cgen.v index 7342f8d6a3..1f84510971 100644 --- a/vlib/v/gen/cgen.v +++ b/vlib/v/gen/cgen.v @@ -5632,28 +5632,14 @@ fn (g &Gen) get_all_test_function_names() []string { mut tsuite_begin := '' mut tsuite_end := '' for _, f in g.table.fns { - if f.name == 'testsuite_begin' { - tsuite_begin = f.name - continue - } - if f.name == 'testsuite_end' { - tsuite_end = f.name - continue - } - if f.name.starts_with('test_') { - tfuncs << f.name - continue - } - // What follows is for internal module tests - // (they are part of a V module, NOT in main) - if f.name.contains('.test_') { - tfuncs << f.name - continue - } if f.name.ends_with('.testsuite_begin') { tsuite_begin = f.name continue } + if f.name.contains('.test_') { + tfuncs << f.name + continue + } if f.name.ends_with('.testsuite_end') { tsuite_end = f.name continue