From aaae043e05d30aa7c96839984e745ad156e95feb Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 1 Jun 2016 16:52:24 +0100 Subject: [PATCH] JAL-2038 fix tests for case insensitive eSequenceIdMatcher --- test/jalview/analysis/SequenceIdMatcherTest.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/test/jalview/analysis/SequenceIdMatcherTest.java b/test/jalview/analysis/SequenceIdMatcherTest.java index eb0fc47..9d3e3b6 100644 --- a/test/jalview/analysis/SequenceIdMatcherTest.java +++ b/test/jalview/analysis/SequenceIdMatcherTest.java @@ -50,6 +50,10 @@ public class SequenceIdMatcherTest assertTrue(testee.equals("A12345,")); assertTrue(testee.equals("A12345?")); assertTrue(testee.equals("A12345_")); + /* + * case insensitive matching + */ + assertTrue(testee.equals("a12345")); /* * matcher name = target name + word separator... @@ -58,13 +62,21 @@ public class SequenceIdMatcherTest assertTrue(testee.equals("A12345")); /* + * case insensitive matching + */ + assertTrue(testee.equals("a12345")); + + /* * miscellaneous failing cases */ testee = sequenceIdMatcher.new SeqIdName("A12345"); assertFalse(testee.equals((Object) null)); assertFalse(testee.equals("")); - assertFalse(testee.equals("a12345")); assertFalse(testee.equals("A12346|A12345")); + /* + * case insensitive matching + */ + assertTrue(testee.equals("a12345")); testee = sequenceIdMatcher.new SeqIdName("A12345?B23456"); assertFalse(testee.equals("B23456")); @@ -74,5 +86,9 @@ public class SequenceIdMatcherTest testee = sequenceIdMatcher.new SeqIdName("A12345<"); assertFalse(testee.equals("A12345?")); assertTrue(testee.equals("A12345<")); // bug? inconsistent + /* + * case insensitive matching + */ + assertTrue(testee.equals("a12345")); } } -- 1.7.10.2