mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: add an isolated test case for long struct names with capitalization
This commit is contained in:
parent
589b932f19
commit
cb52dd85e7
16
vlib/v/tests/differently_named_structs_test.v
Normal file
16
vlib/v/tests/differently_named_structs_test.v
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
struct DB { name string }
|
||||
struct DxB { name string }
|
||||
struct DeclExprA { name string }
|
||||
struct AStructWithAVeryLongName { name string }
|
||||
|
||||
fn test_struct_names_can_be_used_for_creating_them() {
|
||||
a := DB{}
|
||||
assert true
|
||||
b := DxB{}
|
||||
assert true
|
||||
c := DeclExprA{}
|
||||
assert true
|
||||
d := AStructWithAVeryLongName{}
|
||||
assert true
|
||||
}
|
Loading…
Reference in New Issue
Block a user