19
20 if !c.Check(1, []byte("hash")) {
21▶ t.Error("Expected match")
22 }
23
· · ·
24 if !c.Check(1, []byte("hash2")) {
25▶ t.Error("Expected match")
26 }
27
· · ·
28 if c.Check(2, []byte("hash")) {
29▶ t.Error("Expected no match")
30 }
31
· · ·
32 if c.Check(1, []byte("hash3")) {
33▶ t.Error("Expected no match")
34 }
35}
· · ·
87 typ, depth, closed := trie.Match(tc.token)
88 if typ != tc.expectType {
89▶ t.Errorf("\"%v\" matched wrong type, want: %v, got: %v", string(tc.token), tc.expectType, typ)
90 }
91 if depth != tc.expectDepth {
+ 6 more matches in this file