Skip to content

Commit

Permalink
1 -> true
Browse files Browse the repository at this point in the history
  • Loading branch information
myedibleenso committed Feb 17, 2024
1 parent baa05e3 commit 17be9cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ai.lum.odinson.test.utils.OdinsonTest

class TestEventsWithState extends OdinsonTest {

"Odinson" should "match events referencing existing mentions when a in-memory state is used" in {
"Odinson" should "match events referencing existing mentions when an in-memory state is used" in {
val ee = extractorEngineWithSpecificState(getDocument("step-bros"), "memory")

val grammar = """
Expand Down Expand Up @@ -71,7 +71,7 @@ class TestEventsWithState extends OdinsonTest {
getMentionsWithLabel(mentions, "EventBasedPersonRule") should have size (0)
}

it should "match events referencing existing mentions when a in-memory state is used along with a metadataFilter" in {
it should "match events referencing existing mentions when an in-memory state is used along with a metadataFilter" in {
val ee = extractorEngineWithSpecificState(getDocument("step-bros"), "memory")

val grammar = """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class TestQuantifiedPatterns extends OdinsonTest {
val res = ee.query(oq)

numMatches(res) should be (1)
existsMatchWithSpan(odinResults = res, doc = 0, start = 0, end = 3) should be (1)
existsMatchWithSpan(odinResults = res, doc = 0, start = 0, end = 3) should be (true)
}

it should "match simple patterns with open range quantifiers and a metadata filter" in {
Expand All @@ -29,7 +29,7 @@ class TestQuantifiedPatterns extends OdinsonTest {
val res = ee.query(oq)

numMatches(res) should be (1)
existsMatchWithSpan(odinResults = res, doc = 0, start = 0, end = 3) should be (1)
existsMatchWithSpan(odinResults = res, doc = 0, start = 0, end = 3) should be (true)
}

it should "match simple patterns with exact range quantifiers (>=2) and a metadata filter" in {
Expand All @@ -44,6 +44,6 @@ class TestQuantifiedPatterns extends OdinsonTest {
val res = ee.query(oq)

numMatches(res) should be (1)
existsMatchWithSpan(odinResults = res, doc = 0, start = 0, end = 3) should be (1)
existsMatchWithSpan(odinResults = res, doc = 0, start = 0, end = 3) should be (true)
}
}

0 comments on commit 17be9cf

Please sign in to comment.