From 0fd07ce489b7b8b69f30405fcca41f07bbe83611 Mon Sep 17 00:00:00 2001 From: Bart Blast Date: Thu, 24 Oct 2024 21:59:27 +0200 Subject: [PATCH] Test boxed tuples deserialization --- test/javascript/deserializer_test.mjs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/javascript/deserializer_test.mjs b/test/javascript/deserializer_test.mjs index 8bdfa352d..032ee6785 100644 --- a/test/javascript/deserializer_test.mjs +++ b/test/javascript/deserializer_test.mjs @@ -330,6 +330,22 @@ describe("Deserializer", () => { testNotVersionedDeserialization(term); }); }); + + describe("tuple", () => { + const term = Type.tuple([Type.integer(1), Type.float(1.23)]); + + it("top-level", () => { + testTopLevelDeserialization(term); + }); + + it("nested", () => { + testNestedDeserialization(term); + }); + + it("not versioned", () => { + testNotVersionedDeserialization(term); + }); + }); }); describe("JS terms", () => {