File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 77; Test basic evaluation
88(def x 10 )
99(def y 20 )
10- (println " ✓ Can define variables" )
10+ (println " Can define variables" )
1111
1212; Test eval result
1313(def result (+ x y))
1414(if (= result 30 )
15- (println " ✓ Can evaluate expressions" )
16- (println " ✗ Evaluation failed" ))
15+ (println " Can evaluate expressions" )
16+ (println " Evaluation failed" ))
1717
1818; Test type conversions
1919(def int-val 42 )
2020(def float-val 3.14 )
2121(def string-val " hello" )
2222(def list-val (list 1 2 3 ))
2323
24- (println " ✓ Can create values of different types" )
24+ (println " Can create values of different types" )
2525
2626; Test get/set through globals
2727(def answer 42 )
2828(if (= answer 42 )
29- (println " ✓ Global variables work" )
30- (println " ✗ Global variables failed" ))
29+ (println " Global variables work" )
30+ (println " Global variables failed" ))
3131
3232(println " All Lisp-side embedding API tests passed!" )
You can’t perform that action at this time.
0 commit comments