This repository has been archived on 2025-09-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2025LogProg-project-GhentPr.../tests/interpreter/SourceFileReaderTests.kt
2025-04-18 20:36:11 +02:00

32 lines
No EOL
627 B
Kotlin

package interpreter
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import prolog.Program
class SourceFileReaderTests {
@BeforeEach
fun setup() {
Program.clear()
}
@Test
fun a() {
val inputFile = "tests/better_parser/resources/a.pl"
val reader = SourceFileReader()
reader.readFile(inputFile)
println(Program.predicates)
}
@Test
fun foo() {
val inputFile = "tests/better_parser/resources/foo.pl"
val reader = SourceFileReader()
reader.readFile(inputFile)
println(Program.predicates)
}
}