From b8723d14fc31f2e444401a62a0f720ea6aed3189 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Tue, 1 Jun 2021 13:35:59 +0200 Subject: add test case --- skate/matchset_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/skate/matchset_test.go b/skate/matchset_test.go index 0436faf..c804210 100644 --- a/skate/matchset_test.go +++ b/skate/matchset_test.go @@ -67,6 +67,20 @@ func TestMatchSetLookup(t *testing.T) { n: -1, result: []string{"american italian proceedings"}, }, + { + s: "american", + ps: []string{ + "american proceedings XII", + "american journal", + "american", + }, + n: -1, + result: []string{ + "american proceedings XII", + "american journal", + "american", + }, + }, } for _, c := range cases { ms := NewMatchSet(c.ps) -- cgit v1.2.3