X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2FDecimal%2FContext.phpt;h=b3a9adad9565832eaa817b26e01aa52f281a642b;hb=ac7822dd9dd0d5cf0855df8a750468d453bc3053;hp=a67ed075b4d0d5c2be4d96d77e204f17b5cea7da;hpb=0ebd5a03550ffe66a371bcac0d525257faccdb1d;p=awesomized%2Fext-ion 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