diff --git a/test/clj/coffi/ffi_test.clj b/test/clj/coffi/ffi_test.clj index 3f08607..a77ddcf 100644 --- a/test/clj/coffi/ffi_test.clj +++ b/test/clj/coffi/ffi_test.clj @@ -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")))