From ed74080c16b83f5a45e8e58d9d795f33af909194 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 10 Jan 2022 15:34:16 +0100 Subject: [PATCH] tests: clone Decimal\Context --- tests/Decimal/Context.phpt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/Decimal/Context.phpt b/tests/Decimal/Context.phpt index a67ed07..b3a9ada 100644 --- a/tests/Decimal/Context.phpt +++ b/tests/Decimal/Context.phpt @@ -9,6 +9,7 @@ var_dump(ion\Decimal\Context::Dec32()); var_dump(ion\Decimal\Context::Dec64()); var_dump(ion\Decimal\Context::Dec128()); var_dump(ion\Decimal\Context::DecMax()); +var_dump(clone new ion\Decimal\Context(12, 999, -999, ion\Decimal\Context\Rounding::Down05Up, true)); ?> DONE --EXPECTF-- @@ -61,4 +62,16 @@ object(ion\Decimal\Context)#%d (5) { ["clamp"]=> bool(false) } +object(ion\Decimal\Context)#%d (5) { + ["digits"]=> + int(12) + ["eMax"]=> + int(999) + ["eMin"]=> + int(-999) + ["round"]=> + enum(ion\Decimal\Context\Rounding::Down05Up) + ["clamp"]=> + bool(true) +} DONE -- 2.30.2