mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 04:25:06 +02:00
Added foreign-value tests
This commit is contained in:
parent
653319c290
commit
739486b9e3
1 changed files with 5 additions and 1 deletions
|
@ -134,7 +134,11 @@
|
||||||
|
|
||||||
;(write (Cyc-foreign-value "errno" "3"))
|
;(write (Cyc-foreign-value "errno" "3"))
|
||||||
;(newline)
|
;(newline)
|
||||||
(test-group "basic"
|
(test-group "foreign-value"
|
||||||
|
(test 3 (Cyc-foreign-value "1 + 2" 'integer))
|
||||||
|
)
|
||||||
|
|
||||||
|
(test-group "foreign-code"
|
||||||
(write (foreign-code
|
(write (foreign-code
|
||||||
"printf(\"test %d %d \\n\", 1, 2);"
|
"printf(\"test %d %d \\n\", 1, 2);"
|
||||||
"printf(\"test %d %d %d\\n\", 1, 2, 3);")) (newline)
|
"printf(\"test %d %d %d\\n\", 1, 2, 3);")) (newline)
|
||||||
|
|
Loading…
Add table
Reference in a new issue