Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nbari committed Oct 10, 2017
1 parent 0c835a8 commit c004731
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions trie_test.go
Expand Up @@ -224,7 +224,7 @@ func TestTrieGet(t *testing.T) {
}

func TestSplitPath(t *testing.T) {
var testPaths = []struct {
tt := []struct {
in string
out []string
}{
Expand All @@ -241,9 +241,9 @@ func TestSplitPath(t *testing.T) {
}

trie := &Trie{}
for _, tt := range testPaths {
k, p := trie.SplitPath(tt.in)
expect(t, k, tt.out[0])
expect(t, p, tt.out[1])
for _, tc := range tt {
k, p := trie.SplitPath(tc.in)
expect(t, k, tc.out[0])
expect(t, p, tc.out[1])
}
}

0 comments on commit c004731

Please sign in to comment.