Skip to content

Commit

Permalink
Add explicit OR test in DefaultBooleanAndSuite
Browse files Browse the repository at this point in the history
  • Loading branch information
valencik committed Jul 30, 2024
1 parent d2eb7a7 commit 812ab2f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,10 @@ class DefaultBooleanAndSuite extends munit.FunSuite {
assertEquals(actual, Right(expected))
}

test("DefaultBooleanAnd terms in a group with explicit OR") {
val actual = parseQ("(cats OR dogs)")
val expected = Group(Or(Term("cats"), Term("dogs")))
assertEquals(actual, Right(expected))
}

}

0 comments on commit 812ab2f

Please sign in to comment.