fix ill-defined test
This commit is contained in:
parent
85d52f64b7
commit
ef1dcfb6d0
1 changed files with 3 additions and 3 deletions
|
|
@ -29,12 +29,12 @@
|
||||||
|
|
||||||
(t/deftest can-make-upcall
|
(t/deftest can-make-upcall
|
||||||
(t/is (= ((ffi/cfn "upcall_test" [[::ffi/fn [] ::mem/c-string]] ::mem/c-string)
|
(t/is (= ((ffi/cfn "upcall_test" [[::ffi/fn [] ::mem/c-string]] ::mem/c-string)
|
||||||
(fn [] "hello"))
|
(fn [] "hello from clojure from c from clojure"))
|
||||||
"hello")))
|
"hello from clojure from c from clojure")))
|
||||||
|
|
||||||
(t/deftest can-make-upcall2
|
(t/deftest can-make-upcall2
|
||||||
(t/is (= ((ffi/cfn "upcall_test2" [[::ffi/fn [] ::mem/int]] ::mem/int)
|
(t/is (= ((ffi/cfn "upcall_test2" [[::ffi/fn [] ::mem/int]] ::mem/int)
|
||||||
(fn [] 6))
|
(fn [] 5))
|
||||||
5)))
|
5)))
|
||||||
|
|
||||||
(t/deftest can-make-upcall-int-fn-string-ret
|
(t/deftest can-make-upcall-int-fn-string-ret
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue