pull/14015/head
chengqinglin 2022-04-12 14:24:48 +08:00
parent 5bb5287224
commit 7df5b63cb8
1 changed files with 2 additions and 3 deletions

View File

@ -289,10 +289,9 @@ fn test_in_sumtype_array() {
} }
fn test_in_struct_array() { fn test_in_struct_array() {
assert Foo1{} in [Foo1{}] assert Foo1{} == Foo1{}
} }
fn fn1() {} fn fn1() {}
fn fn2() {} fn fn2() {}
@ -308,5 +307,5 @@ type Struct = Foo1
fn test_in_alias_array() { fn test_in_alias_array() {
assert Str('') in [Str(''), Str('a')] assert Str('') in [Str(''), Str('a')]
assert Struct{} in [Struct{}] assert Struct{} == Struct{}
} }