Skip to content

Commit

Permalink
Test first order and hybrid references
Browse files Browse the repository at this point in the history
  • Loading branch information
daemontus committed Dec 24, 2016
1 parent 581164c commit 51faca5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/kotlin/com/github/sybila/huctl/ParserBasicTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,22 @@ class Basic {
assertEquals(
exists("x", False, False), parser.formula("exists x in False: False")
)
assertEquals(
exists("x", True, "x".asReference()), parser.formula("exists x: x")
)
assertEquals(
forall("x", True, "x".asReference()), parser.formula("forall x: x")
)
}

@Test
fun hybrid() {
assertEquals(
bind("x", True), parser.formula("bind x: True")
)
assertEquals(
bind("x", "x".asReference()), parser.formula("bind x: x")
)
assertEquals(
bind("x", at("x", True)), parser.formula("bind x: at x: True")
)
Expand Down

0 comments on commit 51faca5

Please sign in to comment.