Skip to content

Commit e675fb0

Browse files
committed
update unit test
1 parent 4ed5e7f commit e675fb0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

trie/trie_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestInit(t *testing.T) {
2626
"basic files without aliases": {
2727
files: map[string]string{
2828
"test-one.md": "# Test 1\nSome content",
29-
"test 2.md": "# Test 2\nMore content",
29+
"2.md": "# Test 2\nMore content",
3030
},
3131
wantErr: false,
3232
checkFn: func(t *testing.T, tr *trie.Trie) {
@@ -35,9 +35,9 @@ func TestInit(t *testing.T) {
3535
t.Errorf("Expected to find test-one.md in trie, got %v", results)
3636
}
3737

38-
results = tr.Search("test 2")
39-
if !slices.Contains(results, "test 2.md") {
40-
t.Errorf("Expected to find \"test 2.md\" in trie, got %v", results)
38+
results = tr.Search("2")
39+
if !slices.Contains(results, "2.md") {
40+
t.Errorf("Expected to find \"2.md\" in trie, got %v", results)
4141
}
4242
},
4343
},

0 commit comments

Comments
 (0)