aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/uk/ac/ox/cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/uk/ac/ox/cs')
-rw-r--r--src/test/scala/uk/ac/ox/cs/rsacomb/FilteringProgramSpecs.scala12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/test/scala/uk/ac/ox/cs/rsacomb/FilteringProgramSpecs.scala b/src/test/scala/uk/ac/ox/cs/rsacomb/FilteringProgramSpecs.scala
index e627bf7..32ef8da 100644
--- a/src/test/scala/uk/ac/ox/cs/rsacomb/FilteringProgramSpecs.scala
+++ b/src/test/scala/uk/ac/ox/cs/rsacomb/FilteringProgramSpecs.scala
@@ -67,29 +67,25 @@ class FilteringProgramSpec extends AnyFlatSpec with Matchers {
67 67
68 "CQ 0" should "generate 27 rules and 3 facts" in { 68 "CQ 0" should "generate 27 rules and 3 facts" in {
69 val cq = ConjunctiveQuery.parse(cq0).get 69 val cq = ConjunctiveQuery.parse(cq0).get
70 val filter = FilteringProgram(cq, constants) 70 val filter = FilteringProgram(cq)
71 filter.facts should have length 3
72 filter.rules should have length 27 71 filter.rules should have length 27
73 } 72 }
74 73
75 "CQ 1" should "generate 15 rules" in { 74 "CQ 1" should "generate 15 rules" in {
76 val cq = ConjunctiveQuery.parse(cq1).get 75 val cq = ConjunctiveQuery.parse(cq1).get
77 val filter = FilteringProgram(cq, List()) 76 val filter = FilteringProgram(cq)
78 filter.facts shouldBe empty
79 filter.rules should have length 15 77 filter.rules should have length 15
80 } 78 }
81 79
82 "CQ 2" should "generate 51 rules" in { 80 "CQ 2" should "generate 51 rules" in {
83 val cq = ConjunctiveQuery.parse(cq2).get 81 val cq = ConjunctiveQuery.parse(cq2).get
84 val filter = FilteringProgram(cq, List()) 82 val filter = FilteringProgram(cq)
85 filter.facts shouldBe empty
86 filter.rules should have length 51 83 filter.rules should have length 51
87 } 84 }
88 85
89 "BCQ 0" should "generate 46 rules" in { 86 "BCQ 0" should "generate 46 rules" in {
90 val cq = ConjunctiveQuery.parse(bcq0).get 87 val cq = ConjunctiveQuery.parse(bcq0).get
91 val filter = FilteringProgram(cq, constants) 88 val filter = FilteringProgram(cq)
92 filter.facts should have length 3
93 filter.rules should have length 43 89 filter.rules should have length 43
94 } 90 }
95 91