From 2aa450ae6b218e406cf58ae4d70c11a4a935573e Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Sat, 25 Sep 2021 09:19:43 -0500 Subject: [PATCH] Use defalias in the tests --- test/clj/coffi/ffi_test.clj | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/clj/coffi/ffi_test.clj b/test/clj/coffi/ffi_test.clj index f0041d4..9c0d556 100644 --- a/test/clj/coffi/ffi_test.clj +++ b/test/clj/coffi/ffi_test.clj @@ -11,9 +11,10 @@ (t/deftest can-call-primitive-fns (t/is (= 5 ((sut/cfn "add_numbers" [::sut/int ::sut/int] ::sut/int) 2 3)))) -(sut/defstruct ::point - :x ::sut/float - :y ::sut/float) +(sut/defalias ::point + [::sut/struct + [[:x ::sut/float] + [:y ::sut/float]]]) (t/deftest can-call-with-structs (t/is (= {:x 2.0 :y 2.0}