Add upcall test
This commit is contained in:
parent
3ce919e5a1
commit
7b21325365
1 changed files with 5 additions and 0 deletions
|
|
@ -23,3 +23,8 @@
|
|||
(t/is (= "Alternate string"
|
||||
(((sut/cfn "get_downcall" [::sut/int] [::sut/fn [] ::sut/c-string :wrap-serde? true])
|
||||
1)))))
|
||||
|
||||
(t/deftest can-make-upcall
|
||||
(t/is (= ((sut/cfn "upcall_test" [[::sut/fn [] ::sut/c-string :wrap-serde? true]] ::sut/c-string)
|
||||
(fn [] "hello"))
|
||||
"hello")))
|
||||
|
|
|
|||
Loading…
Reference in a new issue