JAL-1965 test asserts no partial word matches can be retrieved
[jalview.git] / 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.");
+  }
+
 }