Skip to content

Commit 7c205ff

Browse files
committed
Add Lisp file
1 parent b0dcb81 commit 7c205ff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lisp/test_embedding_api.lisp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@
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!")

0 commit comments

Comments
 (0)