From 9c7541fa7c2cb51dc138a070d6be131b5d8f68a5 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Fri, 4 Nov 2016 15:25:21 +0000 Subject: [PATCH] JAL-2292 Unit test for utility method for comparing two chars --- test/jalview/util/ComparisonTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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)); + } } -- 1.7.10.2