From 86b6a8b7478d98c2cb6f4457e5b62bdf5d752893 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:16:41 -0300 Subject: [PATCH] adjust data import in test --- test/unit/types/custom/combined/test.typ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/types/custom/combined/test.typ b/test/unit/types/custom/combined/test.typ index 13cf9fa..2d149ee 100644 --- a/test/unit/types/custom/combined/test.typ +++ b/test/unit/types/custom/combined/test.typ @@ -3,7 +3,7 @@ #import "/src/lib.typ": types, field #import types: native -#import "/src/types/base.typ": custom-type-key +#import "/src/data.typ": custom-type-key #import "/src/types/types.typ": cast #let sides(t) = { @@ -39,7 +39,7 @@ #assert.eq(cast((a: 50, b: 6), many-types), (true, (a: 50, b: 6, yep: "i am a dict"))) #assert.eq(cast(int, many-types), (true, int)) #assert.eq(cast(cast, many-types), (true, cast)) -// #panic(sides(stroke)().at(custom-type-key)) + #assert.eq( cast(sides(stroke)(top: 5pt, right: black, left: 5pt + black), many-types), (false, "expected integer, color, sides of integer, sides of literal '" + repr(red) + "', dictionary, type or function, found sides of stroke")