diff options
| author | RncLsn <rnc.lsn@gmail.com> | 2015-05-29 11:37:19 +0100 |
|---|---|---|
| committer | RncLsn <rnc.lsn@gmail.com> | 2015-05-29 11:37:19 +0100 |
| commit | 6a559a415b3bdb3048021839e5bcf5bbf5aa4bbd (patch) | |
| tree | 4aa9a4a21e01236e3b4fa27f69a7bd831b7fd8ca /test | |
| parent | b8212705e65db860bbb899b16fa0e7bc9e8536cf (diff) | |
| download | ACQuA-6a559a415b3bdb3048021839e5bcf5bbf5aa4bbd.tar.gz ACQuA-6a559a415b3bdb3048021839e5bcf5bbf5aa4bbd.zip | |
Anonymous ontology id.
Diffstat (limited to 'test')
| -rw-r--r-- | test/resources/LightTests.xml | 4 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/query/CheckAnswers.java | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/test/resources/LightTests.xml b/test/resources/LightTests.xml index bd0ea93..a30c436 100644 --- a/test/resources/LightTests.xml +++ b/test/resources/LightTests.xml | |||
| @@ -11,8 +11,8 @@ | |||
| 11 | 11 | ||
| 12 | <classes> | 12 | <classes> |
| 13 | <class name="uk.ac.ox.cs.pagoda.global_tests.TestPagodaUOBM"/> | 13 | <class name="uk.ac.ox.cs.pagoda.global_tests.TestPagodaUOBM"/> |
| 14 | <class name="uk.ac.ox.cs.pagoda.global_tests.TestPagodaLUBM"/> | 14 | <!--<class name="uk.ac.ox.cs.pagoda.global_tests.TestPagodaLUBM"/>--> |
| 15 | <class name="uk.ac.ox.cs.pagoda.global_tests.TestPagodaFLY"/> | 15 | <!--<class name="uk.ac.ox.cs.pagoda.global_tests.TestPagodaFLY"/>--> |
| 16 | </classes> | 16 | </classes> |
| 17 | </test> | 17 | </test> |
| 18 | </suite> \ No newline at end of file | 18 | </suite> \ No newline at end of file |
diff --git a/test/uk/ac/ox/cs/pagoda/query/CheckAnswers.java b/test/uk/ac/ox/cs/pagoda/query/CheckAnswers.java index f16d657..97e3a57 100644 --- a/test/uk/ac/ox/cs/pagoda/query/CheckAnswers.java +++ b/test/uk/ac/ox/cs/pagoda/query/CheckAnswers.java | |||
| @@ -31,7 +31,6 @@ public class CheckAnswers { | |||
| 31 | Set<QueryRecord> givenAnswersRecords = gson.fromJson(givenReader, cqType); | 31 | Set<QueryRecord> givenAnswersRecords = gson.fromJson(givenReader, cqType); |
| 32 | 32 | ||
| 33 | for(QueryRecord computedAnswersRecord : computedAnswersRecords) { | 33 | for(QueryRecord computedAnswersRecord : computedAnswersRecords) { |
| 34 | if(computedAnswersRecord.queryID == 8) continue; // DEBUG | ||
| 35 | Set<AnswerTuple> givenAnswers = null; | 34 | Set<AnswerTuple> givenAnswers = null; |
| 36 | for(QueryRecord givenAnswersRecord : givenAnswersRecords) { | 35 | for(QueryRecord givenAnswersRecord : givenAnswersRecords) { |
| 37 | if(givenAnswersRecord.queryID == computedAnswersRecord.queryID) { | 36 | if(givenAnswersRecord.queryID == computedAnswersRecord.queryID) { |
| @@ -44,7 +43,7 @@ public class CheckAnswers { | |||
| 44 | 43 | ||
| 45 | Set<AnswerTuple> computedAnswers = computedAnswersRecord.soundAnswerTuples; | 44 | Set<AnswerTuple> computedAnswers = computedAnswersRecord.soundAnswerTuples; |
| 46 | Assert.assertEquals(computedAnswers.size(), givenAnswers.size(), | 45 | Assert.assertEquals(computedAnswers.size(), givenAnswers.size(), |
| 47 | "Different number sound answers for query " + computedAnswersRecord.queryID + "!" | 46 | "Different number of sound answers for query " + computedAnswersRecord.queryID + "!" |
| 48 | + "Expected " + givenAnswers.size() + ", got " + computedAnswers.size()); | 47 | + "Expected " + givenAnswers.size() + ", got " + computedAnswers.size()); |
| 49 | Assert.assertEquals(computedAnswers, givenAnswers, | 48 | Assert.assertEquals(computedAnswers, givenAnswers, |
| 50 | "Different sound answers for query " + computedAnswersRecord.queryID + "!"); | 49 | "Different sound answers for query " + computedAnswersRecord.queryID + "!"); |
