From f1495de8bb6414fa6fe4da27c5a5b2cd3dd53cfa Mon Sep 17 00:00:00 2001 From: f3rn0s Date: Tue, 20 Feb 2024 23:55:06 +1000 Subject: Add module -> dictionary conversion (#3428) Co-authored-by: f3rn0s Co-authored-by: Laurenz Co-authored-by: Ilia <43654815+istudyatuni@users.noreply.github.com> --- tests/typ/compiler/dict.typ | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/typ/compiler/dict.typ b/tests/typ/compiler/dict.typ index eca1c458..8a5be5cd 100644 --- a/tests/typ/compiler/dict.typ +++ b/tests/typ/compiler/dict.typ @@ -83,6 +83,11 @@ #test("c" in dict, false) #test(dict, (a: 3, b: 1)) +--- +// Test dictionary constructor +#dictionary(sys).at("version") +#dictionary(sys).at("no_crash", default: none) + --- // Test that removal keeps order. #let dict = (a: 1, b: 2, c: 3, d: 4) -- cgit v1.2.3