+1
-1
lox/interpreter.janet
+1
-1
lox/interpreter.janet
+10
test/test_main.janet
+10
test/test_main.janet
···
54
54
52
55
55
102
56
56
`)
57
+
(test-stdout (process `
58
+
fun p() {
59
+
print 1;
60
+
return;
61
+
print 2;
62
+
}
63
+
p();
64
+
`) `
65
+
1
66
+
`)
57
67
58
68
(test-error (process "none = nil;") "Undefined variable 'none'.")
59
69
(test-error (process "print none;") "Undefined variable 'none'.")