1
0
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:
krischerven 2020-04-12 20:22:14 -04:00 committed by GitHub
parent 1a4113d245
commit a0d6651e0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ struct FooBar {
fn test_typeof_on_structs() { fn test_typeof_on_structs() {
assert typeof(FooBar{}) == 'FooBar' assert typeof(FooBar{}) == 'FooBar'
astruct_static := [2] astruct_static := [2]FooBar
astruct_dynamic := [FooBar{}, FooBar{}] astruct_dynamic := [FooBar{}, FooBar{}]
assert typeof(astruct_static) == '[2]FooBar' assert typeof(astruct_static) == '[2]FooBar'
assert typeof(astruct_dynamic) == 'array_FooBar' assert typeof(astruct_dynamic) == 'array_FooBar'