tests: fix typeof_test

pull/4380/head^2
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
1 changed files with 1 additions and 1 deletions

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'