Improve tests

This commit is contained in:
nazrin 2025-06-02 02:58:54 +00:00
parent b0d934707b
commit a1acefab0e
4 changed files with 21 additions and 2 deletions

View file

@ -15,8 +15,9 @@ void main(){
}
return r;
}
assert([ "./lox", "test/fib21.lox" ].execute.output == fib(6765));
assert([ "./lox", "test/fib10.lox" ].execute.output == fib(34));
assert([ "./lox", "test/closure.lox" ].execute.output == "1\n2\n");
assert([ "./lox", "test/fib_for.lox" ].execute.output == fib(6765));
assert([ "./lox", "test/fib_recursive.lox" ].execute.output == fib(34));
assert([ "./lox", "test/fib_closure.lox" ].execute.output == fib(34));
}