From 05afdf18be827be5245a8eb798d70768141fd26c Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 22 Dec 2015 16:24:02 +0000 Subject: [PATCH] JAL-1191 more test cases --- test/jalview/io/gff/SequenceOntologyTest.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/test/jalview/io/gff/SequenceOntologyTest.java b/test/jalview/io/gff/SequenceOntologyTest.java index 54ab5dd..2fd3865 100644 --- a/test/jalview/io/gff/SequenceOntologyTest.java +++ b/test/jalview/io/gff/SequenceOntologyTest.java @@ -16,7 +16,7 @@ public class SequenceOntologyTest } @Test(groups = "Functional") - public void testTermIsA() + public void testIsA() { assertTrue(so.isA("SO:0000087", "SO:0000704")); assertFalse(so.isA("SO:0000704", "SO:0000087")); @@ -30,7 +30,20 @@ public class SequenceOntologyTest assertTrue(so.isA("micronuclear_sequence", "sequence_attribute")); // same thing: + assertTrue(so.isA("micronuclear_sequence", "micronuclear_sequence")); assertTrue(so.isA("micronuclear_sequence", "SO:0000084")); + assertTrue(so.isA("SO:0000084", "micronuclear_sequence")); + assertTrue(so.isA("SO:0000084", "SO:0000084")); + + // SO name to description: + assertTrue(so.isA("SO:0000084", "organelle_sequence")); + assertTrue(so.isA("SO:0000084", "sequence_location")); + assertTrue(so.isA("SO:0000084", "sequence_attribute")); + + // description to SO name: + assertTrue(so.isA("micronuclear_sequence", "SO:0000736")); + assertTrue(so.isA("micronuclear_sequence", "SO:0000735")); + assertTrue(so.isA("micronuclear_sequence", "SO:0000400")); } @Test(groups = "Functional") -- 1.7.10.2