Cleanup 2
This commit is contained in:
parent
a9bb6e0338
commit
3c938749d0
22 changed files with 299 additions and 110 deletions
|
@ -41,10 +41,7 @@ class ParserPreprocessorIntegrationTests {
|
|||
val parsed = parser.parseToEnd("X is $input") as Term
|
||||
|
||||
assertEquals(
|
||||
Structure(Atom("is"), listOf(
|
||||
Variable("X"),
|
||||
Structure(Atom("-"), listOf(number)),
|
||||
)),
|
||||
Structure("is", Variable("X"), Structure("-",number)),
|
||||
parsed
|
||||
)
|
||||
|
||||
|
@ -74,7 +71,7 @@ class ParserPreprocessorIntegrationTests {
|
|||
val result = parser.parseToEnd(input) as Term
|
||||
|
||||
assertEquals(
|
||||
Structure(Atom("is"), listOf(Variable("X"), Structure(Atom("-"), listOf(Integer(1), Integer(2))))),
|
||||
Structure("is", Variable("X"), Structure("-", Integer(1), Integer(2))),
|
||||
result
|
||||
)
|
||||
|
||||
|
|
Reference in a new issue