Moved tests from scripts/ to test/scripts/

This commit is contained in:
2022-11-11 14:51:47 +00:00
parent 0aa6e4063b
commit 2c143a8be5
36 changed files with 10 additions and 10 deletions

View File

@@ -0,0 +1,23 @@
//create a bunch of toy functions as literals to be called from C
fn answer() {
return 42;
}
fn identity(x) {
return x;
}
fn makeCounter() {
var total = 0;
fn counter() {
return ++total;
}
return counter;
}
fn fail() {
assert false, "Failed correctly";
}