From 0ab6dab185e31fcf6f3e0cf98dc8496f02448ee8 Mon Sep 17 00:00:00 2001 From: nea Date: Thu, 10 Aug 2023 16:05:11 +0200 Subject: Basic tests --- test/src/TestLisp.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/src') 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)}") } -- cgit