aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-06-01 13:35:59 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-06-01 13:35:59 +0200
commitb8723d14fc31f2e444401a62a0f720ea6aed3189 (patch)
treef0a4be36fe572b049c0848072d1fae9d2e95fe34
parentbd862b51161fab8a62bcae49eb7452a82dd2b70a (diff)
downloadrefcat-b8723d14fc31f2e444401a62a0f720ea6aed3189.tar.gz
refcat-b8723d14fc31f2e444401a62a0f720ea6aed3189.zip
add test case
-rw-r--r--skate/matchset_test.go14
1 files changed, 14 insertions, 0 deletions
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)