diff options
author | nea <nea@nea.moe> | 2023-08-10 16:05:11 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-08-10 16:05:11 +0200 |
commit | 0ab6dab185e31fcf6f3e0cf98dc8496f02448ee8 (patch) | |
tree | f5e646246a888ba76f040a7ab81ca6a4d8cdee7c /test/src/TestLisp.kt | |
parent | f345fadd492ea5bb09e515d007be438fc08c9b93 (diff) | |
download | nealisp-0ab6dab185e31fcf6f3e0cf98dc8496f02448ee8.tar.gz nealisp-0ab6dab185e31fcf6f3e0cf98dc8496f02448ee8.tar.bz2 nealisp-0ab6dab185e31fcf6f3e0cf98dc8496f02448ee8.zip |
Basic tests
Diffstat (limited to 'test/src/TestLisp.kt')
-rw-r--r-- | test/src/TestLisp.kt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/src/TestLisp.kt b/test/src/TestLisp.kt index 5563042..fa90468 100644 --- a/test/src/TestLisp.kt +++ b/test/src/TestLisp.kt @@ -8,7 +8,10 @@ fun main() { val otherP = LispParser.parse(File(T::class.java.getResource("/test.lisp")!!.file)) val executionContext = LispExecutionContext() executionContext.setupStandardBindings() - executionContext.registerModule("secondary", LispParser.parse(File(T::class.java.getResource("/secondary.lisp")!!.file))) + executionContext.registerModule( + "secondary", + LispParser.parse(File(T::class.java.getResource("/secondary.lisp")!!.file)) + ) val bindings = executionContext.genBindings() - executionContext.executeProgram(bindings, otherP) + println("The results are in: ${executionContext.runTests(otherP, bindings)}") } |