mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: fix typeof_test
This commit is contained in:
parent
1a4113d245
commit
a0d6651e0e
@ -20,7 +20,7 @@ struct FooBar {
|
||||
|
||||
fn test_typeof_on_structs() {
|
||||
assert typeof(FooBar{}) == 'FooBar'
|
||||
astruct_static := [2]
|
||||
astruct_static := [2]FooBar
|
||||
astruct_dynamic := [FooBar{}, FooBar{}]
|
||||
assert typeof(astruct_static) == '[2]FooBar'
|
||||
assert typeof(astruct_dynamic) == 'array_FooBar'
|
||||
|
Loading…
Reference in New Issue
Block a user