From: Michael Wallner Date: Mon, 10 Jan 2022 14:34:16 +0000 (+0100) Subject: tests: clone Decimal\Context X-Git-Tag: v0.1.0~38 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=ed74080c16b83f5a45e8e58d9d795f33af909194;p=awesomized%2Fext-ion tests: clone Decimal\Context --- 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