Merge pull request #703 from peco/fix-pipeline-test-assertions

Add assertion to TestPipeline
This commit is contained in:
lestrrat 2026-02-18 15:31:07 +09:00 committed by GitHub
commit e20b3f4f34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,7 @@ import (
"context"
"github.com/peco/peco/line"
"github.com/stretchr/testify/require"
)
type RegexpFilter struct {
@ -144,5 +145,5 @@ barfoo
for _, l := range dst.lines {
got = append(got, l.DisplayString())
}
t.Logf("%#v", got)
require.Equal(t, []string{"foobar"}, got)
}