diff options
author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-12-07 13:50:50 +0000 |
---|---|---|
committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-12-07 13:50:50 +0000 |
commit | bbbb61ee13fa258cbed0b502426534afad49b651 (patch) | |
tree | ae2cbeb271bfedad4948499fc45f4c81cd567ff3 /src/test/scala | |
parent | 920a42b4b55666c582e1d1420336996f4af324fc (diff) | |
download | RSAComb-bbbb61ee13fa258cbed0b502426534afad49b651.tar.gz RSAComb-bbbb61ee13fa258cbed0b502426534afad49b651.zip |
Update answers pretty printer
Diffstat (limited to 'src/test/scala')
-rw-r--r-- | src/test/scala/uk/ac/ox/cs/rsacomb/sparql/ConjunctiveQueryAnswerSpecs.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/uk/ac/ox/cs/rsacomb/sparql/ConjunctiveQueryAnswerSpecs.scala b/src/test/scala/uk/ac/ox/cs/rsacomb/sparql/ConjunctiveQueryAnswerSpecs.scala index ddc6377..b2319bc 100644 --- a/src/test/scala/uk/ac/ox/cs/rsacomb/sparql/ConjunctiveQueryAnswerSpecs.scala +++ b/src/test/scala/uk/ac/ox/cs/rsacomb/sparql/ConjunctiveQueryAnswerSpecs.scala | |||
@@ -43,11 +43,11 @@ class ConjunctiveQueryAnswerSpec extends AnyFlatSpec with Matchers { | |||
43 | import ConjunctiveQueryAnswerSpec._ | 43 | import ConjunctiveQueryAnswerSpec._ |
44 | 44 | ||
45 | "A conjunctive query" should "print an header and a single line if it has a single answer" in { | 45 | "A conjunctive query" should "print an header and a single line if it has a single answer" in { |
46 | oneAnswer.toString shouldBe s"X\tY\tZ\n$iri1\t$iri2\t$iri3" | 46 | oneAnswer.toString shouldBe s"X\tY\tZ\n${iri1.getIRI}\t${iri2.getIRI}\t${iri3.getIRI}" |
47 | } | 47 | } |
48 | 48 | ||
49 | it should "print a header and multiple answers on multiple lines" in { | 49 | it should "print a header and multiple answers on multiple lines" in { |
50 | multipleAnswers.toString shouldBe s"Y\tZ\n$iri1\t$iri1\n$iri1\t$iri2\n$iri1\t$iri3" | 50 | multipleAnswers.toString shouldBe s"Y\tZ\n${iri1.getIRI}\t${iri1.getIRI}\n${iri1.getIRI}\t${iri2.getIRI}\n${iri1.getIRI}\t${iri3.getIRI}" |
51 | } | 51 | } |
52 | 52 | ||
53 | it should "print a special \"NO ANSWER.\" string when it has no answer" in { | 53 | it should "print a special \"NO ANSWER.\" string when it has no answer" in { |