diff options
Diffstat (limited to 'src/test/scala/rsacomb/CanonicalModelSpec.scala')
-rw-r--r-- | src/test/scala/rsacomb/CanonicalModelSpec.scala | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/test/scala/rsacomb/CanonicalModelSpec.scala b/src/test/scala/rsacomb/CanonicalModelSpec.scala index c528328..c5f040d 100644 --- a/src/test/scala/rsacomb/CanonicalModelSpec.scala +++ b/src/test/scala/rsacomb/CanonicalModelSpec.scala | |||
@@ -5,7 +5,6 @@ import org.scalatest.LoneElement | |||
5 | import org.scalatest.flatspec.AnyFlatSpec | 5 | import org.scalatest.flatspec.AnyFlatSpec |
6 | import org.scalatest.matchers.should.Matchers | 6 | import org.scalatest.matchers.should.Matchers |
7 | 7 | ||
8 | |||
9 | import org.semanticweb.owlapi.model._ | 8 | import org.semanticweb.owlapi.model._ |
10 | import uk.ac.manchester.cs.owl.owlapi._ | 9 | import uk.ac.manchester.cs.owl.owlapi._ |
11 | import org.semanticweb.owlapi.dlsyntax.renderer.DLSyntaxObjectRenderer | 10 | import org.semanticweb.owlapi.dlsyntax.renderer.DLSyntaxObjectRenderer |
@@ -72,10 +71,24 @@ class Ontology1_CanonicalModelSpec | |||
72 | ontology.unsafeRoles should not contain roleR | 71 | ontology.unsafeRoles should not contain roleR |
73 | } | 72 | } |
74 | 73 | ||
74 | it should "have 3 elements in its conflict set" in { | ||
75 | ontology.confl(roleR) should have size 3 | ||
76 | } | ||
77 | |||
75 | it should "contain S in its conflict set" in { | 78 | it should "contain S in its conflict set" in { |
76 | ontology.confl(roleR) should contain(roleS) | 79 | ontology.confl(roleR) should contain(roleS) |
77 | } | 80 | } |
78 | 81 | ||
82 | it should "contain T in its conflict set" in { | ||
83 | ontology.confl(roleR) should contain(roleT) | ||
84 | } | ||
85 | |||
86 | it should ("contain " + renderer.render( | ||
87 | roleR_inv | ||
88 | ) + " in its conflict set") in { | ||
89 | ontology.confl(roleR) should contain(roleR_inv) | ||
90 | } | ||
91 | |||
79 | renderer.render(roleS) should "be safe" in { | 92 | renderer.render(roleS) should "be safe" in { |
80 | ontology.unsafeRoles should not contain roleS | 93 | ontology.unsafeRoles should not contain roleS |
81 | } | 94 | } |