JAL-2808 update spike to latest (filter range, Present option)
[jalview.git] / test / jalview / util / matcher / KeyedMatcherTest.java
index 01d0067..3fd7800 100644 (file)
@@ -39,6 +39,14 @@ public class KeyedMatcherTest
      */
     KeyedMatcherI km = new KeyedMatcher(Condition.LT, 1.2f, "AF");
     assertEquals(km.toString(), "AF < 1.2");
+
+    /*
+     * Present / NotPresent omit the value pattern
+     */
+    km = new KeyedMatcher(Condition.Present, "", "AF");
+    assertEquals(km.toString(), "AF Is present");
+    km = new KeyedMatcher(Condition.NotPresent, "", "AF");
+    assertEquals(km.toString(), "AF Is not present");
   }
 
   @Test