From 69a99d552117e55525344f50ac185b617bc6ad24 Mon Sep 17 00:00:00 2001 From: Kristin Rutenkolk Date: Wed, 30 Oct 2024 15:17:11 +0100 Subject: [PATCH] remove nested struct definition tests, as they seem to not find the right types consistently --- test/clj/coffi/mem_test.clj | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/test/clj/coffi/mem_test.clj b/test/clj/coffi/mem_test.clj index ae0fea8..3de0f1d 100644 --- a/test/clj/coffi/mem_test.clj +++ b/test/clj/coffi/mem_test.clj @@ -78,11 +78,6 @@ (= {:a 5 :b 10 :c 15} (mem/deserialize (mem/serialize (TestType. 5 10 15) ::TestType) ::TestType)))) -(t/deftest can-define-nested-structs - (t/is - (eval - `(mem/defstruct ~'NestedTestType [::mem/int ~'x ::mem/byte ~'y ::TestType ~'z])))) - (mem/defstruct NestedTestType [::mem/int x ::mem/byte y ::TestType z]) (t/deftest can-instantiated-nested-structs @@ -113,11 +108,6 @@ (int-array [1 2 3 4]) (.z (mem/deserialize (mem/serialize (ArrayTestType. 5 6 (int-array [1 2 3 4])) ::ArrayTestType) ::ArrayTestType))))) -(t/deftest can-define-complex-structs - (t/is - (eval - `(mem/defstruct ~'ComplexTestType [[::mem/array ::ArrayTestType 4] ~'x ::mem/byte ~'y [::mem/array ::mem/int 4] ~'z ::NestedTestType ~'w])))) - (mem/defstruct ComplexTestType [[::mem/array ::ArrayTestType 4] x ::mem/byte y [::mem/array ::mem/int 4] z ::NestedTestType w]) (t/deftest can-serialize-deserialize-complex-struct-type