From 296788ba8a0177e93ec9d4640d05d503c23fe5aa Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 25 Nov 2023 19:04:40 +0200 Subject: [PATCH] fix tests for latest v (part 1) --- tests/array_struct_inline/array_struct_inline.vv | 4 ++-- tests/case/case.vv | 14 ++++++-------- tests/const/const.vv | 14 ++++++-------- tests/enum_complex/enum_complex.vv | 4 +--- 4 files changed, 15 insertions(+), 21 deletions(-) diff --git a/tests/array_struct_inline/array_struct_inline.vv b/tests/array_struct_inline/array_struct_inline.vv index 5c68f74..97fec70 100644 --- a/tests/array_struct_inline/array_struct_inline.vv +++ b/tests/array_struct_inline/array_struct_inline.vv @@ -1,7 +1,7 @@ module main -const boms = [Go2VInlineStruct{[0xfe, 0xff], 'utf-16be'}, - Go2VInlineStruct{[0xff, 0xfe], 'utf-16le'}, Go2VInlineStruct{[0xef, 0xbb, 0xbf], 'utf-8'}] +const boms = [Go2VInlineStruct{[0xfe, 0xff], 'utf-16be'}, Go2VInlineStruct{[0xff, 0xfe], 'utf-16le'}, + Go2VInlineStruct{[0xef, 0xbb, 0xbf], 'utf-8'}] struct Go2VInlineStruct { mut: diff --git a/tests/case/case.vv b/tests/case/case.vv index 5f1b38b..6ce60a2 100644 --- a/tests/case/case.vv +++ b/tests/case/case.vv @@ -1,13 +1,11 @@ module main -const ( - uppercase_with_underscores = 0 - lowercase_with_underscores = 0 - camel_case = 0 - upper_camel_case = 0 - uppercase = 0 - lowercase = 0 -) +const uppercase_with_underscores = 0 +const lowercase_with_underscores = 0 +const camel_case = 0 +const upper_camel_case = 0 +const uppercase = 0 +const lowercase = 0 fn ok() { mut erfd_fs324 := ['a', 'b', 'c', 'd'] diff --git a/tests/const/const.vv b/tests/const/const.vv index 8443b9c..8344e0e 100644 --- a/tests/const/const.vv +++ b/tests/const/const.vv @@ -1,10 +1,8 @@ module main -const ( - struct_uppercase_to_handle = 123 - struct1 = 'dsfsdfs' - bbb = `b` - ccc = `c` - struct2 = `a` - struct3 = true -) +const struct_uppercase_to_handle = 123 +const struct1 = 'dsfsdfs' +const bbb = `b` +const ccc = `c` +const struct2 = `a` +const struct3 = true diff --git a/tests/enum_complex/enum_complex.vv b/tests/enum_complex/enum_complex.vv index bcda75f..64cb112 100644 --- a/tests/enum_complex/enum_complex.vv +++ b/tests/enum_complex/enum_complex.vv @@ -1,8 +1,6 @@ module main -const ( - default_msg_accept_func = default_msg_accept_func -) +const default_msg_accept_func = default_msg_accept_func enum EnumFieldTest { enum_fieid_zero