Closed Eumaeus closed 6 years ago
Is it possible to describe and document this in the issue tracker rather than a pull request?
In Corpus.scala
…
Replaced ~~
with >=
at lines: 663, 669, 692, and 699.
Added 6 texts in CorpusPrevNextSpec.scala
.
What is the issue, though? Anything more concrete than "not correct"?
Asking for corpus.prevUrn(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.perseus_grc2:2.1"))
returns:
Some(urn:cts:greekLit:tlg0012.tlg001.perseus_grc2:1.596-1.611)
Asking for corpus.nextUrn(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.perseus_grc2:2.1"))
returns:
Some(urn:cts:greekLit:tlg0012.tlg001.perseus_grc2.lemmata:2.2.1-2.4.3)
Fixed and tested.
... see the pull-request. Changed ~~ to >= in prev and next functions for the Corpus object. Added tests for that in CorpusPrevNextSpec.