f8a45b14d9
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
18 lines
337 B
Go
18 lines
337 B
Go
package txt
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestKeywords(t *testing.T) {
|
|
t.Run("cat", func(t *testing.T) {
|
|
keywords := Keywords("cat")
|
|
assert.Equal(t, []string{"cat"}, keywords)
|
|
})
|
|
t.Run("was", func(t *testing.T) {
|
|
keywords := Keywords("was")
|
|
assert.Equal(t, []string(nil), keywords)
|
|
})
|
|
}
|