mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-11 14:57:36 +02:00
Added more tests
This commit is contained in:
parent
b6509b442a
commit
fd8cb32e46
1 changed files with 2 additions and 0 deletions
|
@ -38,11 +38,13 @@
|
|||
; Would need to generate scheme wrappers to handle these conversions
|
||||
|
||||
(c-define scm-strlen my-integer "strlen" string)
|
||||
(c-define scm-strlen-str my-integer-as-string "strlen" string)
|
||||
;(c-define scm-strlen "int" "strlen" string)
|
||||
(c-define scm-strlend double "strlen" string)
|
||||
|
||||
(test-group "foreign lambda"
|
||||
(test 15 (scm-strlen "testing 1, 2, 3"))
|
||||
(test 15.0 (scm-strlend "testing 1, 2, 3"))
|
||||
(test "15" (scm-strlen-str "testing 1, 2, 3"))
|
||||
)
|
||||
(test-exit)
|
||||
|
|
Loading…
Add table
Reference in a new issue