9
9
10
10
func TestType_Equal (t * testing.T ) {
11
11
tests := []struct {
12
- index string
12
+ index string // Index added for IDEA to show green test marker per test.
13
13
a , b Type
14
14
want bool
15
15
}{
@@ -22,24 +22,18 @@ func TestType_Equal(t *testing.T) {
22
22
{"7" , Int , Nil , false },
23
23
{"8" , Int , Array (Int ), false },
24
24
{"9" , Int , Map {"foo" : Int }, false },
25
- {"10" , Int , StrictMap {"foo" : Int }, false },
26
25
{"11" , Int , Array (Int ), false },
27
26
{"12" , Array (Int ), Array (Int ), true },
28
27
{"13" , Array (Int ), Array (Float ), false },
29
28
{"14" , Map {"foo" : Int }, Map {"foo" : Int }, true },
30
29
{"15" , Map {"foo" : Int }, Map {"foo" : Float }, false },
31
- {"16" , Map {"foo" : Int }, StrictMap {"foo" : Int }, false },
32
- {"17" , StrictMap {"foo" : Int }, StrictMap {"foo" : Int }, true },
33
- {"18" , StrictMap {"foo" : Int }, StrictMap {"foo" : Float }, false },
34
30
{"19" , Map {"foo" : Map {"bar" : Int }}, Map {"foo" : Map {"bar" : Int }}, true },
35
31
{"20" , Map {"foo" : Map {"bar" : Int }}, Map {"foo" : Map {"bar" : Float }}, false },
36
32
{"21" , Any , Any , true },
37
33
{"22" , Any , Int , true },
38
34
{"23" , Int , Any , true },
39
35
{"24" , Any , Map {"foo" : Int }, true },
40
36
{"25" , Map {"foo" : Int }, Any , true },
41
- {"26" , Any , StrictMap {"foo" : Int }, true },
42
- {"27" , StrictMap {"foo" : Int }, Any , true },
43
37
{"28" , Any , Array (Int ), true },
44
38
{"29" , Array (Int ), Any , true },
45
39
}
0 commit comments