We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a8d946 commit 57bfb2eCopy full SHA for 57bfb2e
til_test.go
@@ -244,7 +244,7 @@ func Test_TagMap_Get(t *testing.T) {
244
}
245
246
for _, tt := range tests {
247
- pages := []*Page{&Page{TagsStr: "go"}}
+ pages := []*Page{{TagsStr: "go"}}
248
tMap := NewTagMap(pages)
249
250
actual := tMap.Get(tt.input)
@@ -286,7 +286,7 @@ func Test_TagMap_Len(t *testing.T) {
286
287
288
func Test_TagMap_SortedTagNames(t *testing.T) {
289
- pages := []*Page{&Page{TagsStr: "go, ada, lua"}}
+ pages := []*Page{{TagsStr: "go, ada, lua"}}
290
291
292
expected := []string{"ada", "go", "lua"}
0 commit comments