From cba94dacdc6c6cbd9ce811b52cd1dcfe3018f84b Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 13 Nov 2015 15:22:17 +0000 Subject: [PATCH] JAL-1965 test asserts no partial word matches can be retrieved --- test/jalview/analysis/SequenceIdMatcherTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/jalview/analysis/SequenceIdMatcherTest.java b/test/jalview/analysis/SequenceIdMatcherTest.java index 325a0c4..76e34d9 100644 --- a/test/jalview/analysis/SequenceIdMatcherTest.java +++ b/test/jalview/analysis/SequenceIdMatcherTest.java @@ -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."); + } + } -- 1.7.10.2