You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
576 B

import { VM, run, libBasic } from "cumlisp"
import { readFile } from "fs"
import test from "./index.js"
const vm = new VM()
libBasic.installBasic(vm)
test(vm)
//is it funny that we're testing the unit testing with the unit testing?
//
//yes
/*console.log(await run(`%(
(set x "deez")
(assertTrue "Successful assertion to true" (equals 1 1))
(assertTrue "Failed assertion to true" (equals 1 0))
(assertTrue "Assertion with variables and strings" (equals (x) "deez"))
)`, vm))*/
readFile("./test.lsp", 'utf8', async (err, data) => {
console.log(await run(data, vm))
})