From 94a36c5ca42f6ebeaddf3bf1b84840249aea0fe3 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 26 Dec 2022 15:31:23 +0200 Subject: [PATCH] tests: remove `module main` from tests, that do not need to be internal --- vlib/v/tests/alias_char_type_reference_test.v | 2 -- vlib/v/tests/anon_fn_with_nested_anon_fn_args_test.v | 2 -- vlib/v/tests/anon_struct_type_test.v | 2 -- vlib/v/tests/cast_bool_to_int_test.v | 2 -- vlib/v/tests/cast_to_alias_test.v | 2 -- vlib/v/tests/cast_to_anon_sumtype_test.v | 2 -- vlib/v/tests/cast_to_u8_test.v | 2 -- ...ould_happen_on_the_concrete_types_when_using_generics_test.v | 2 -- vlib/v/tests/comptime_for_in_field_with_generic_fn_test.v | 2 -- vlib/v/tests/comptime_for_method_call_in_print_call_test.v | 2 -- vlib/v/tests/comptime_if_expr_generic_typ_is_type_test.v | 2 -- vlib/v/tests/const_name_equals_fn_name_test.v | 2 -- vlib/v/tests/const_use_nested_optionals_test.v | 2 -- vlib/v/tests/dereference_mut_interface_in_loop_test.v | 2 -- vlib/v/tests/fixed_array_of_threads_test.v | 2 -- vlib/v/tests/fn_type_only_argument_test.v | 2 -- vlib/v/tests/generic_fn_cast_to_alias_test.v | 2 -- vlib/v/tests/generic_fn_returning_option_and_result_test.v | 2 -- vlib/v/tests/generic_sumtype_cast_test.v | 2 -- vlib/v/tests/generic_sumtype_str_test.v | 2 -- vlib/v/tests/generics_interface_with_non_generic_method_test.v | 2 -- vlib/v/tests/generics_method_on_receiver_aliases_types_test.v | 2 -- vlib/v/tests/generics_method_with_sumtype_args_test.v | 2 -- .../generics_struct_field_with_default_struct_value_test.v | 2 -- vlib/v/tests/generics_struct_init_in_generic_fn_test.v | 2 -- ...enerics_struct_init_with_inconsistent_generic_types_3_test.v | 2 -- vlib/v/tests/generics_with_nested_generic_type_parameter_test.v | 2 -- vlib/v/tests/generics_with_nested_generics_fn_infer_call_test.v | 2 -- vlib/v/tests/generics_with_pointer_index_test.v | 2 -- vlib/v/tests/generics_with_reference_generic_args_test.v | 2 -- vlib/v/tests/go_call_fn_using_map_value_test.v | 2 -- vlib/v/tests/if_cond_with_optional_test.v | 2 -- vlib/v/tests/if_expr_with_sumtype_map_test.v | 2 -- vlib/v/tests/imported_symbols_test.v | 2 -- vlib/v/tests/interface_embedding_call_test.v | 2 -- vlib/v/tests/interface_method_using_struct_embed_test.v | 2 -- vlib/v/tests/interface_struct_embedding_test.v | 2 -- vlib/v/tests/interfaces_map_test.v | 2 -- vlib/v/tests/mark_as_referenced_test.v | 2 -- vlib/v/tests/match_sumtype_var_return_sumtype_test.v | 2 -- vlib/v/tests/multi_line_with_optionals_test.v | 2 -- vlib/v/tests/multiret_with_sumtype_test.v | 2 -- vlib/v/tests/shared_array_any_filter_map_all_test.v | 2 -- vlib/v/tests/shared_array_last_test.v | 2 -- vlib/v/tests/shared_array_sort_test.v | 2 -- vlib/v/tests/shared_optional_test.v | 2 -- vlib/v/tests/shared_struct_method_call_test.v | 2 -- vlib/v/tests/string_index_in_for_mut_in_test.v | 2 -- vlib/v/tests/string_interpolation_of_array_of_structs_test.v | 2 -- vlib/v/tests/struct_init_update_with_mutable_receiver_test.v | 2 -- vlib/v/tests/struct_init_with_multi_nested_embed_update_test.v | 2 -- vlib/v/tests/struct_init_with_update_test.v | 2 -- vlib/v/tests/struct_selector_or_block_test.v | 2 -- vlib/v/tests/sumtype_with_none_test.v | 2 -- vlib/v/tests/tmpl_script_tag_interpolation_test.v | 2 -- vlib/v/tests/tmpl_with_single_quotes_test.v | 2 -- vlib/v/tests/typeof_type_test.v | 2 -- vlib/v/tests/vargs_auto_str_method_and_println_test.v | 2 -- 58 files changed, 116 deletions(-) diff --git a/vlib/v/tests/alias_char_type_reference_test.v b/vlib/v/tests/alias_char_type_reference_test.v index 996b2ed39..584dc1f2b 100644 --- a/vlib/v/tests/alias_char_type_reference_test.v +++ b/vlib/v/tests/alias_char_type_reference_test.v @@ -1,5 +1,3 @@ -module main - type ALchar = char fn test_alias_char_type_reference() { diff --git a/vlib/v/tests/anon_fn_with_nested_anon_fn_args_test.v b/vlib/v/tests/anon_fn_with_nested_anon_fn_args_test.v index 0e36c68b5..c0e9aa5cf 100644 --- a/vlib/v/tests/anon_fn_with_nested_anon_fn_args_test.v +++ b/vlib/v/tests/anon_fn_with_nested_anon_fn_args_test.v @@ -1,5 +1,3 @@ -module main - fn test_anon_fn_with_nested_anon_fn_args() { mut xa := fn (x fn (int) string, y int) string { return x(y) diff --git a/vlib/v/tests/anon_struct_type_test.v b/vlib/v/tests/anon_struct_type_test.v index bf1977909..9c5852c0a 100644 --- a/vlib/v/tests/anon_struct_type_test.v +++ b/vlib/v/tests/anon_struct_type_test.v @@ -1,5 +1,3 @@ -module main - fn func(arg struct { foo string }) { assert arg.foo == 'foo' } diff --git a/vlib/v/tests/cast_bool_to_int_test.v b/vlib/v/tests/cast_bool_to_int_test.v index a34d20f91..830f25d45 100644 --- a/vlib/v/tests/cast_bool_to_int_test.v +++ b/vlib/v/tests/cast_bool_to_int_test.v @@ -1,5 +1,3 @@ -module main - fn test_cast_bool_to_int() { i := true x := int(i) diff --git a/vlib/v/tests/cast_to_alias_test.v b/vlib/v/tests/cast_to_alias_test.v index 95ea664fe..9592b8f66 100644 --- a/vlib/v/tests/cast_to_alias_test.v +++ b/vlib/v/tests/cast_to_alias_test.v @@ -1,5 +1,3 @@ -module main - type CEnum = int enum Enum { diff --git a/vlib/v/tests/cast_to_anon_sumtype_test.v b/vlib/v/tests/cast_to_anon_sumtype_test.v index ca08bd3c2..dc5f13ca3 100644 --- a/vlib/v/tests/cast_to_anon_sumtype_test.v +++ b/vlib/v/tests/cast_to_anon_sumtype_test.v @@ -1,5 +1,3 @@ -module main - fn test_cast_to_anon_sumtype() { x := string|none(none) println(x) diff --git a/vlib/v/tests/cast_to_u8_test.v b/vlib/v/tests/cast_to_u8_test.v index cc2b85a0f..3c5027a4c 100644 --- a/vlib/v/tests/cast_to_u8_test.v +++ b/vlib/v/tests/cast_to_u8_test.v @@ -1,5 +1,3 @@ -module main - fn test_cast_to_alias() { r1 := u8(u8(1)) println(r1) diff --git a/vlib/v/tests/checks_for_operator_overrides_should_happen_on_the_concrete_types_when_using_generics_test.v b/vlib/v/tests/checks_for_operator_overrides_should_happen_on_the_concrete_types_when_using_generics_test.v index cdde2227b..ad8073261 100644 --- a/vlib/v/tests/checks_for_operator_overrides_should_happen_on_the_concrete_types_when_using_generics_test.v +++ b/vlib/v/tests/checks_for_operator_overrides_should_happen_on_the_concrete_types_when_using_generics_test.v @@ -1,5 +1,3 @@ -module main - import datatypes struct Item { diff --git a/vlib/v/tests/comptime_for_in_field_with_generic_fn_test.v b/vlib/v/tests/comptime_for_in_field_with_generic_fn_test.v index 0ba3bb8ec..9f73f5f68 100644 --- a/vlib/v/tests/comptime_for_in_field_with_generic_fn_test.v +++ b/vlib/v/tests/comptime_for_in_field_with_generic_fn_test.v @@ -1,5 +1,3 @@ -module main - // exploring `decode` options with nested structs struct Parent { diff --git a/vlib/v/tests/comptime_for_method_call_in_print_call_test.v b/vlib/v/tests/comptime_for_method_call_in_print_call_test.v index 349a4dc2b..93ff15f72 100644 --- a/vlib/v/tests/comptime_for_method_call_in_print_call_test.v +++ b/vlib/v/tests/comptime_for_method_call_in_print_call_test.v @@ -1,5 +1,3 @@ -module main - struct S1 {} fn test_comptime_for_method_call_str() { diff --git a/vlib/v/tests/comptime_if_expr_generic_typ_is_type_test.v b/vlib/v/tests/comptime_if_expr_generic_typ_is_type_test.v index 94f8efd90..96004a718 100644 --- a/vlib/v/tests/comptime_if_expr_generic_typ_is_type_test.v +++ b/vlib/v/tests/comptime_if_expr_generic_typ_is_type_test.v @@ -1,5 +1,3 @@ -module main - fn write[T](out T) string { $if T.typ is bool { println('FOO') diff --git a/vlib/v/tests/const_name_equals_fn_name_test.v b/vlib/v/tests/const_name_equals_fn_name_test.v index ae3eba09c..497b18aa2 100644 --- a/vlib/v/tests/const_name_equals_fn_name_test.v +++ b/vlib/v/tests/const_name_equals_fn_name_test.v @@ -1,5 +1,3 @@ -module main - import term fn abc() { diff --git a/vlib/v/tests/const_use_nested_optionals_test.v b/vlib/v/tests/const_use_nested_optionals_test.v index 162cedd0c..7e9287bf1 100644 --- a/vlib/v/tests/const_use_nested_optionals_test.v +++ b/vlib/v/tests/const_use_nested_optionals_test.v @@ -1,5 +1,3 @@ -module main - import os const iterations = (os.getenv_opt('ITERATIONS') or { '5' }).int() diff --git a/vlib/v/tests/dereference_mut_interface_in_loop_test.v b/vlib/v/tests/dereference_mut_interface_in_loop_test.v index c8b53b185..c30946b36 100644 --- a/vlib/v/tests/dereference_mut_interface_in_loop_test.v +++ b/vlib/v/tests/dereference_mut_interface_in_loop_test.v @@ -1,5 +1,3 @@ -module main - import rand import rand.wyrand import rand.splitmix64 diff --git a/vlib/v/tests/fixed_array_of_threads_test.v b/vlib/v/tests/fixed_array_of_threads_test.v index fda4719df..acb3f5f62 100644 --- a/vlib/v/tests/fixed_array_of_threads_test.v +++ b/vlib/v/tests/fixed_array_of_threads_test.v @@ -1,5 +1,3 @@ -module main - fn test_fixed_array_of_threads() { mut avar := [8]thread string{} avar[0] = spawn printme() diff --git a/vlib/v/tests/fn_type_only_argument_test.v b/vlib/v/tests/fn_type_only_argument_test.v index 57b69559f..11e4208fe 100644 --- a/vlib/v/tests/fn_type_only_argument_test.v +++ b/vlib/v/tests/fn_type_only_argument_test.v @@ -1,5 +1,3 @@ -module main - import time struct Game { diff --git a/vlib/v/tests/generic_fn_cast_to_alias_test.v b/vlib/v/tests/generic_fn_cast_to_alias_test.v index 3c082902b..31a3f6342 100644 --- a/vlib/v/tests/generic_fn_cast_to_alias_test.v +++ b/vlib/v/tests/generic_fn_cast_to_alias_test.v @@ -1,5 +1,3 @@ -module main - type VkPresentModeKHR = u32 fn create_c_array[T](len u32) &T { diff --git a/vlib/v/tests/generic_fn_returning_option_and_result_test.v b/vlib/v/tests/generic_fn_returning_option_and_result_test.v index 04111fb33..78850d08f 100644 --- a/vlib/v/tests/generic_fn_returning_option_and_result_test.v +++ b/vlib/v/tests/generic_fn_returning_option_and_result_test.v @@ -1,5 +1,3 @@ -module main - fn get_value[T]() ?T { return none } diff --git a/vlib/v/tests/generic_sumtype_cast_test.v b/vlib/v/tests/generic_sumtype_cast_test.v index 670350279..21ebf2ce8 100644 --- a/vlib/v/tests/generic_sumtype_cast_test.v +++ b/vlib/v/tests/generic_sumtype_cast_test.v @@ -1,5 +1,3 @@ -module main - struct Empty {} struct Node[T] { diff --git a/vlib/v/tests/generic_sumtype_str_test.v b/vlib/v/tests/generic_sumtype_str_test.v index c952c6da6..94152564d 100644 --- a/vlib/v/tests/generic_sumtype_str_test.v +++ b/vlib/v/tests/generic_sumtype_str_test.v @@ -1,5 +1,3 @@ -module main - struct None {} pub type Maybe[T] = None | T diff --git a/vlib/v/tests/generics_interface_with_non_generic_method_test.v b/vlib/v/tests/generics_interface_with_non_generic_method_test.v index 644b9c6b9..e4e020724 100644 --- a/vlib/v/tests/generics_interface_with_non_generic_method_test.v +++ b/vlib/v/tests/generics_interface_with_non_generic_method_test.v @@ -1,5 +1,3 @@ -module main - interface TypeFactory[T] { get_type(type_name string) T } diff --git a/vlib/v/tests/generics_method_on_receiver_aliases_types_test.v b/vlib/v/tests/generics_method_on_receiver_aliases_types_test.v index 746678739..9cd825af4 100644 --- a/vlib/v/tests/generics_method_on_receiver_aliases_types_test.v +++ b/vlib/v/tests/generics_method_on_receiver_aliases_types_test.v @@ -1,5 +1,3 @@ -module main - struct Container[T] { value T } diff --git a/vlib/v/tests/generics_method_with_sumtype_args_test.v b/vlib/v/tests/generics_method_with_sumtype_args_test.v index 4847584c6..30fd917a5 100644 --- a/vlib/v/tests/generics_method_with_sumtype_args_test.v +++ b/vlib/v/tests/generics_method_with_sumtype_args_test.v @@ -1,5 +1,3 @@ -module main - fn test_generics_method_with_sumtype_args() { mut me := CatDad{} ret := me.adopt[CatType, Cat](CatType.black, BlackCat{}) diff --git a/vlib/v/tests/generics_struct_field_with_default_struct_value_test.v b/vlib/v/tests/generics_struct_field_with_default_struct_value_test.v index 228319409..4736c1f1e 100644 --- a/vlib/v/tests/generics_struct_field_with_default_struct_value_test.v +++ b/vlib/v/tests/generics_struct_field_with_default_struct_value_test.v @@ -1,5 +1,3 @@ -module main - struct None {} type OptError = None | string diff --git a/vlib/v/tests/generics_struct_init_in_generic_fn_test.v b/vlib/v/tests/generics_struct_init_in_generic_fn_test.v index 653c75bdc..ea60c2968 100644 --- a/vlib/v/tests/generics_struct_init_in_generic_fn_test.v +++ b/vlib/v/tests/generics_struct_init_in_generic_fn_test.v @@ -1,5 +1,3 @@ -module main - pub struct Person { pub mut: id int diff --git a/vlib/v/tests/generics_struct_init_with_inconsistent_generic_types_3_test.v b/vlib/v/tests/generics_struct_init_with_inconsistent_generic_types_3_test.v index 0f2bc2040..b6b06a23a 100644 --- a/vlib/v/tests/generics_struct_init_with_inconsistent_generic_types_3_test.v +++ b/vlib/v/tests/generics_struct_init_with_inconsistent_generic_types_3_test.v @@ -1,5 +1,3 @@ -module main - pub struct Maybe[T] { present bool val T diff --git a/vlib/v/tests/generics_with_nested_generic_type_parameter_test.v b/vlib/v/tests/generics_with_nested_generic_type_parameter_test.v index 08f6afcc7..48bf3a394 100644 --- a/vlib/v/tests/generics_with_nested_generic_type_parameter_test.v +++ b/vlib/v/tests/generics_with_nested_generic_type_parameter_test.v @@ -1,5 +1,3 @@ -module main - pub struct Randomizer[T] { } diff --git a/vlib/v/tests/generics_with_nested_generics_fn_infer_call_test.v b/vlib/v/tests/generics_with_nested_generics_fn_infer_call_test.v index b2ef054fc..ea3122669 100644 --- a/vlib/v/tests/generics_with_nested_generics_fn_infer_call_test.v +++ b/vlib/v/tests/generics_with_nested_generics_fn_infer_call_test.v @@ -1,5 +1,3 @@ -module main - pub struct Reptile {} pub struct Insect {} diff --git a/vlib/v/tests/generics_with_pointer_index_test.v b/vlib/v/tests/generics_with_pointer_index_test.v index ad86b7753..606b42235 100644 --- a/vlib/v/tests/generics_with_pointer_index_test.v +++ b/vlib/v/tests/generics_with_pointer_index_test.v @@ -1,5 +1,3 @@ -module main - pub struct Vec[T] { mut: data &T diff --git a/vlib/v/tests/generics_with_reference_generic_args_test.v b/vlib/v/tests/generics_with_reference_generic_args_test.v index e62148cd1..d244d831c 100644 --- a/vlib/v/tests/generics_with_reference_generic_args_test.v +++ b/vlib/v/tests/generics_with_reference_generic_args_test.v @@ -1,5 +1,3 @@ -module main - fn foo[T](val T) ?T { return val } diff --git a/vlib/v/tests/go_call_fn_using_map_value_test.v b/vlib/v/tests/go_call_fn_using_map_value_test.v index b652e98c3..00c90f27f 100644 --- a/vlib/v/tests/go_call_fn_using_map_value_test.v +++ b/vlib/v/tests/go_call_fn_using_map_value_test.v @@ -1,5 +1,3 @@ -module main - fn test_go_call_fn_using_map_value() { sum := fn (x int, y int) int { return x + y diff --git a/vlib/v/tests/if_cond_with_optional_test.v b/vlib/v/tests/if_cond_with_optional_test.v index 860478abc..c2828b0fa 100644 --- a/vlib/v/tests/if_cond_with_optional_test.v +++ b/vlib/v/tests/if_cond_with_optional_test.v @@ -1,5 +1,3 @@ -module main - import rand interface Sample { diff --git a/vlib/v/tests/if_expr_with_sumtype_map_test.v b/vlib/v/tests/if_expr_with_sumtype_map_test.v index 09a379c77..a2a5830c0 100644 --- a/vlib/v/tests/if_expr_with_sumtype_map_test.v +++ b/vlib/v/tests/if_expr_with_sumtype_map_test.v @@ -1,5 +1,3 @@ -module main - type ConfigValue = bool | int | string type ConfigMap = map[string]ConfigValue diff --git a/vlib/v/tests/imported_symbols_test.v b/vlib/v/tests/imported_symbols_test.v index c96c8a288..0bda8ca9b 100644 --- a/vlib/v/tests/imported_symbols_test.v +++ b/vlib/v/tests/imported_symbols_test.v @@ -1,5 +1,3 @@ -module main - import geometry { Line, Point, PointCond, Shape, point_str } fn point_is(p Point, cond PointCond) bool { diff --git a/vlib/v/tests/interface_embedding_call_test.v b/vlib/v/tests/interface_embedding_call_test.v index 351bb75e1..8499ef388 100644 --- a/vlib/v/tests/interface_embedding_call_test.v +++ b/vlib/v/tests/interface_embedding_call_test.v @@ -1,5 +1,3 @@ -module main - fn test_interface_embedding_call() { g1 := G1{} do_the_greet(g1) diff --git a/vlib/v/tests/interface_method_using_struct_embed_test.v b/vlib/v/tests/interface_method_using_struct_embed_test.v index e4e383f5a..dc0b900cf 100644 --- a/vlib/v/tests/interface_method_using_struct_embed_test.v +++ b/vlib/v/tests/interface_method_using_struct_embed_test.v @@ -1,5 +1,3 @@ -module main - pub interface IObject { mut: do_stuff() diff --git a/vlib/v/tests/interface_struct_embedding_test.v b/vlib/v/tests/interface_struct_embedding_test.v index 9b9a40616..e460fd169 100644 --- a/vlib/v/tests/interface_struct_embedding_test.v +++ b/vlib/v/tests/interface_struct_embedding_test.v @@ -1,5 +1,3 @@ -module main - interface Getter { get() string } diff --git a/vlib/v/tests/interfaces_map_test.v b/vlib/v/tests/interfaces_map_test.v index 7ca4fdbe9..04766af57 100644 --- a/vlib/v/tests/interfaces_map_test.v +++ b/vlib/v/tests/interfaces_map_test.v @@ -1,5 +1,3 @@ -module main - interface Speaker { say() string } diff --git a/vlib/v/tests/mark_as_referenced_test.v b/vlib/v/tests/mark_as_referenced_test.v index cf1ba919b..e30497454 100644 --- a/vlib/v/tests/mark_as_referenced_test.v +++ b/vlib/v/tests/mark_as_referenced_test.v @@ -1,5 +1,3 @@ -module main - fn test_mark_as_referenced() { if true { a := Type{} diff --git a/vlib/v/tests/match_sumtype_var_return_sumtype_test.v b/vlib/v/tests/match_sumtype_var_return_sumtype_test.v index 406e58a14..ed32b4496 100644 --- a/vlib/v/tests/match_sumtype_var_return_sumtype_test.v +++ b/vlib/v/tests/match_sumtype_var_return_sumtype_test.v @@ -1,5 +1,3 @@ -module main - type Sum = Struct | int struct Struct { diff --git a/vlib/v/tests/multi_line_with_optionals_test.v b/vlib/v/tests/multi_line_with_optionals_test.v index 6faf92af2..9bd5e183a 100644 --- a/vlib/v/tests/multi_line_with_optionals_test.v +++ b/vlib/v/tests/multi_line_with_optionals_test.v @@ -1,5 +1,3 @@ -module main - fn has_optional() ?int { return 51 } diff --git a/vlib/v/tests/multiret_with_sumtype_test.v b/vlib/v/tests/multiret_with_sumtype_test.v index 91eacb668..37c593cfa 100644 --- a/vlib/v/tests/multiret_with_sumtype_test.v +++ b/vlib/v/tests/multiret_with_sumtype_test.v @@ -1,5 +1,3 @@ -module main - type Abc = int | rune | string | u32 fn cyz() (Abc, string) { diff --git a/vlib/v/tests/shared_array_any_filter_map_all_test.v b/vlib/v/tests/shared_array_any_filter_map_all_test.v index 9d39ac5dc..222116a00 100644 --- a/vlib/v/tests/shared_array_any_filter_map_all_test.v +++ b/vlib/v/tests/shared_array_any_filter_map_all_test.v @@ -1,5 +1,3 @@ -module main - import time struct Alarms { diff --git a/vlib/v/tests/shared_array_last_test.v b/vlib/v/tests/shared_array_last_test.v index db56dd39b..bd8ef7ac3 100644 --- a/vlib/v/tests/shared_array_last_test.v +++ b/vlib/v/tests/shared_array_last_test.v @@ -1,5 +1,3 @@ -module main - fn test_shared_array_last() { shared a := []int{} lock { diff --git a/vlib/v/tests/shared_array_sort_test.v b/vlib/v/tests/shared_array_sort_test.v index 20824f0c2..1c4dac3e3 100644 --- a/vlib/v/tests/shared_array_sort_test.v +++ b/vlib/v/tests/shared_array_sort_test.v @@ -1,5 +1,3 @@ -module main - import time struct Alarms { diff --git a/vlib/v/tests/shared_optional_test.v b/vlib/v/tests/shared_optional_test.v index 3dd68cab5..22c0c749b 100644 --- a/vlib/v/tests/shared_optional_test.v +++ b/vlib/v/tests/shared_optional_test.v @@ -1,5 +1,3 @@ -module main - struct ABC { mut: s string diff --git a/vlib/v/tests/shared_struct_method_call_test.v b/vlib/v/tests/shared_struct_method_call_test.v index 516c524ab..87951cc52 100644 --- a/vlib/v/tests/shared_struct_method_call_test.v +++ b/vlib/v/tests/shared_struct_method_call_test.v @@ -1,5 +1,3 @@ -module main - struct Aa { mut: b []int diff --git a/vlib/v/tests/string_index_in_for_mut_in_test.v b/vlib/v/tests/string_index_in_for_mut_in_test.v index 3c2f30f54..c88ee6eb4 100644 --- a/vlib/v/tests/string_index_in_for_mut_in_test.v +++ b/vlib/v/tests/string_index_in_for_mut_in_test.v @@ -1,5 +1,3 @@ -module main - [heap] pub struct Grid { pub mut: diff --git a/vlib/v/tests/string_interpolation_of_array_of_structs_test.v b/vlib/v/tests/string_interpolation_of_array_of_structs_test.v index 828a94573..83457a7c8 100644 --- a/vlib/v/tests/string_interpolation_of_array_of_structs_test.v +++ b/vlib/v/tests/string_interpolation_of_array_of_structs_test.v @@ -1,5 +1,3 @@ -module main - struct Anything { mut: name string diff --git a/vlib/v/tests/struct_init_update_with_mutable_receiver_test.v b/vlib/v/tests/struct_init_update_with_mutable_receiver_test.v index 18998c966..64ce937de 100644 --- a/vlib/v/tests/struct_init_update_with_mutable_receiver_test.v +++ b/vlib/v/tests/struct_init_update_with_mutable_receiver_test.v @@ -1,5 +1,3 @@ -module main - struct Person { name string age int diff --git a/vlib/v/tests/struct_init_with_multi_nested_embed_update_test.v b/vlib/v/tests/struct_init_with_multi_nested_embed_update_test.v index 5df88e9f8..151f4daec 100644 --- a/vlib/v/tests/struct_init_with_multi_nested_embed_update_test.v +++ b/vlib/v/tests/struct_init_with_multi_nested_embed_update_test.v @@ -1,5 +1,3 @@ -module main - struct Animal { Duck id int diff --git a/vlib/v/tests/struct_init_with_update_test.v b/vlib/v/tests/struct_init_with_update_test.v index cf1a1dd6c..c2482224b 100644 --- a/vlib/v/tests/struct_init_with_update_test.v +++ b/vlib/v/tests/struct_init_with_update_test.v @@ -1,5 +1,3 @@ -module main - struct Author { username string name string diff --git a/vlib/v/tests/struct_selector_or_block_test.v b/vlib/v/tests/struct_selector_or_block_test.v index 18269937b..e53ce7ddd 100644 --- a/vlib/v/tests/struct_selector_or_block_test.v +++ b/vlib/v/tests/struct_selector_or_block_test.v @@ -1,5 +1,3 @@ -module main - interface Greeting { tt ?string } diff --git a/vlib/v/tests/sumtype_with_none_test.v b/vlib/v/tests/sumtype_with_none_test.v index 47c6284b8..f061e3de0 100644 --- a/vlib/v/tests/sumtype_with_none_test.v +++ b/vlib/v/tests/sumtype_with_none_test.v @@ -1,5 +1,3 @@ -module main - fn string_none() string|none { return none } diff --git a/vlib/v/tests/tmpl_script_tag_interpolation_test.v b/vlib/v/tests/tmpl_script_tag_interpolation_test.v index 1c63ced21..a355714b8 100644 --- a/vlib/v/tests/tmpl_script_tag_interpolation_test.v +++ b/vlib/v/tests/tmpl_script_tag_interpolation_test.v @@ -1,5 +1,3 @@ -module main - struct PlotData { dates []string numerical_result []int diff --git a/vlib/v/tests/tmpl_with_single_quotes_test.v b/vlib/v/tests/tmpl_with_single_quotes_test.v index cb908cfe4..7d078cc6c 100644 --- a/vlib/v/tests/tmpl_with_single_quotes_test.v +++ b/vlib/v/tests/tmpl_with_single_quotes_test.v @@ -1,5 +1,3 @@ -module main - pub struct SomeThing { pub: m map[string]string diff --git a/vlib/v/tests/typeof_type_test.v b/vlib/v/tests/typeof_type_test.v index f9250c9d3..33a9dba36 100644 --- a/vlib/v/tests/typeof_type_test.v +++ b/vlib/v/tests/typeof_type_test.v @@ -1,5 +1,3 @@ -module main - fn test_typeof_fn() { assert typeof[fn (s string, x u32) (int, f32)]().name == 'fn (string, u32) (int, f32)' } diff --git a/vlib/v/tests/vargs_auto_str_method_and_println_test.v b/vlib/v/tests/vargs_auto_str_method_and_println_test.v index 77a957847..4f2c16916 100644 --- a/vlib/v/tests/vargs_auto_str_method_and_println_test.v +++ b/vlib/v/tests/vargs_auto_str_method_and_println_test.v @@ -1,5 +1,3 @@ -module main - fn test_autoprint_string_vargs() { add_s('a') assert true -- 2.39.5