From: tcofoegbu Date: Fri, 4 Nov 2016 15:25:21 +0000 (+0000) Subject: JAL-2292 Unit test for utility method for comparing two chars X-Git-Tag: Release_2_10_1^2~16 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9c7541fa7c2cb51dc138a070d6be131b5d8f68a5;p=jalview.git JAL-2292 Unit test for utility method for comparing two chars --- diff --git a/test/jalview/util/ComparisonTest.java b/test/jalview/util/ComparisonTest.java index 9aab66c..bce34d4 100644 --- a/test/jalview/util/ComparisonTest.java +++ b/test/jalview/util/ComparisonTest.java @@ -188,4 +188,16 @@ public class ComparisonTest assertTrue(Comparison.isNucleotideSequence("a A-g.GcCtTuU", true)); assertFalse(Comparison.isNucleotideSequence("a A-g.GcCtTuU", false)); } + + @Test(groups = { "Functional" }) + public void compareCharsTest() + { + assertTrue(Comparison.compareChars('a', 'a', false)); + assertTrue(Comparison.compareChars('a', 'a', true)); + assertTrue(Comparison.compareChars('A', 'a', false)); + assertTrue(Comparison.compareChars('a', 'A', false)); + + assertFalse(Comparison.compareChars('a', 'A', true)); + assertFalse(Comparison.compareChars('A', 'a', true)); + } }