From 89d96c623dc882fcdbff02e201bcfb27e6bbfd2a Mon Sep 17 00:00:00 2001 From: +merlan #flirora Date: Wed, 27 Nov 2024 11:36:04 -0500 Subject: Let decimal constructor accept decimal values (#5481) --- tests/suite/foundations/decimal.typ | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/suite/foundations/decimal.typ b/tests/suite/foundations/decimal.typ index bae0d2e6..6b3787e9 100644 --- a/tests/suite/foundations/decimal.typ +++ b/tests/suite/foundations/decimal.typ @@ -4,10 +4,12 @@ #test(decimal("\u{2212}7654.321"), decimal("-7654.321")) #test(decimal({ 3.141592653 }), decimal("3.141592653000000012752934707")) #test(decimal({ -3.141592653 }), decimal("-3.141592653000000012752934707")) +#test(decimal(decimal(3)), decimal("3.0")) +#test(decimal(true), decimal("1.0")) #test(type(decimal(10)), decimal) --- decimal-constructor-bad-type --- -// Error: 10-17 expected integer, float, or string, found type +// Error: 10-17 expected decimal, integer, boolean, float, or string, found type #decimal(decimal) --- decimal-constructor-bad-value --- -- cgit v1.2.3