diff options
Diffstat (limited to 'indexers/pikdex/meta_test.go')
| -rw-r--r-- | indexers/pikdex/meta_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indexers/pikdex/meta_test.go b/indexers/pikdex/meta_test.go index e04815f..8980d8c 100644 --- a/indexers/pikdex/meta_test.go +++ b/indexers/pikdex/meta_test.go @@ -11,7 +11,7 @@ func TestContentLines(t *testing.T) { in := `asdf hjkl` result := contentLines(in) - assert.Equal(t, "asdf", "hjkl", result) + assert.Equal(t, []string{"asdf", "hjkl"}, result) } func TestContentLines_EmptyLine(t *testing.T) { @@ -19,13 +19,13 @@ func TestContentLines_EmptyLine(t *testing.T) { hjkl` result := contentLines(in) - assert.Equal(t, "asdf", "hjkl", result) + assert.Equal(t, []string{"asdf", "hjkl"}, result) } func TestContentLines_Empty(t *testing.T) { in := `` result := contentLines(in) - assert.Equal(t, nil, result) + assert.Len(t, result, 0) } func TestContentLines_Comment(t *testing.T) { @@ -35,5 +35,5 @@ asdf # iuyyiuoui hjkl` result := contentLines(in) - assert.Equal(t, "asdf", "hjkl", result) + assert.Equal(t, []string{"asdf", "hjkl"}, result) } |
