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.

19 lines
451 B

import { VM, run, libBasic } from "cumlisp"
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))