Skip to content

Commit

Permalink
adjust data import in test
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed Jan 13, 2025
1 parent 0bc84fd commit 86b6a8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/types/custom/combined/test.typ
Original file line number Diff line number Diff line change
Expand Up @@ -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) = {
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 86b6a8b

Please sign in to comment.