JAL-1965 test asserts no partial word matches can be retrieved
authorJim Procter <jprocter@issues.jalview.org>
Fri, 13 Nov 2015 15:22:17 +0000 (15:22 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 13 Nov 2015 15:22:17 +0000 (15:22 +0000)
test/jalview/analysis/SequenceIdMatcherTest.java

index 325a0c4..76e34d9 100644 (file)
@@ -157,4 +157,12 @@ public class SequenceIdMatcherTest
 
   }
 
+  @Test(groups = { "Functional" })
+  public void testPartialNotMatch()
+  {
+    SequenceI[] match = getWordMatcher().findAllIdMatches("complex");
+    Assert.assertNull(match,
+            "Partial match of 'complex' to any of sequences shouldn't yield a match.");
+  }
+
 }