//go:build test package pikdex import ( "github.com/stretchr/testify/assert" "testing" ) func TestContentLines(t *testing.T) { in := `asdf hjkl` result := contentLines(in) assert.Equal(t, "asdf", "hjkl", result) } func TestContentLines_EmptyLine(t *testing.T) { in := `asdf hjkl` result := contentLines(in) assert.Equal(t, "asdf", "hjkl", result) } func TestContentLines_Empty(t *testing.T) { in := `` result := contentLines(in) assert.Equal(t, nil, result) } func TestContentLines_Comment(t *testing.T) { in := ` //aaa asdf # iuyyiuoui hjkl` result := contentLines(in) assert.Equal(t, "asdf", "hjkl", result) }