From 3d46b9546e1ccf131ce4dbcbfc12f6e37fa301ea Mon Sep 17 00:00:00 2001 From: ewy Date: Mon, 1 Jun 2026 19:37:34 +0200 Subject: default to manpage view for help --- indexers/pikdex/meta_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'indexers/pikdex/meta_test.go') 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) } -- cgit v1.3.1