Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure with mpdecimal version 2.5 #48

Open
remicollet opened this issue Aug 19, 2020 · 1 comment
Open

Test failure with mpdecimal version 2.5 #48

remicollet opened this issue Aug 19, 2020 · 1 comment

Comments

@remicollet
Copy link
Contributor

Everything OK with libmpdec version 2.4, but with version 2.5

TEST 9/100 [tests/Decimal/methods/ceil.phpt]
========DIFF========
001+ Array
002+ (
003+     [op1] => Decimal\Decimal Object
004+         (
005+             [value] => -INF
006+             [precision] => 34
007+         )
009+     [result] => Decimal\Decimal Object
010+         (
011+             [value] => NAN
012+             [precision] => 34
013+         )
014+ 
015+     [expect] => -INF
016+     [prec] => 34
017+ )
018+ Array
019+ (
020+     [op1] => Decimal\Decimal Object
021+         (
022+             [value] => INF
023+             [precision] => 34
024+         )
025+ 
026+     [result] => Decimal\Decimal Object
027+         (
028+             [value] => NAN
029+             [precision] => 34
030+         )
031+ 
032+     [expect] => INF
033+     [prec] => 34
034+ )
035+ Array
036+ (
037+     [op1] => Decimal\Decimal Object
038+         (
039+             [value] => INF
040+             [precision] => 10
041+         )
042+ 
043+     [result] => Decimal\Decimal Object
044+         (
045+             [value] => NAN
046+             [precision] => 10
047+         )
048+ 
049+     [expect] => INF
050+     [prec] => 10
051+ )
052+ Array
053+ (
054+     [op1] => Decimal\Decimal Object
055+         (
056+             [value] => -INF
057+             [precision] => 10
058+         )
059+ 
060+     [result] => Decimal\Decimal Object
061+         (
062+             [value] => NAN
063+             [precision] => 10
064+         )
065+ 
066+     [expect] => -INF
067+     [prec] => 10
068+ )
========DONE========
FAIL Decimal::ceil [tests/Decimal/methods/ceil.phpt] 


TEST 13/100 [tests/Decimal/methods/floor.phpt]
========DIFF========
001+ Array
002+ (
003+     [op1] => Decimal\Decimal Object
004+         (
005+             [value] => -INF
006+             [precision] => 34
007+         )
009+     [result] => Decimal\Decimal Object
010+         (
011+             [value] => NAN
012+             [precision] => 34
013+         )
014+ 
015+     [expect] => -INF
016+     [prec] => 34
017+ )
018+ Array
019+ (
020+     [op1] => Decimal\Decimal Object
021+         (
022+             [value] => INF
023+             [precision] => 34
024+         )
025+ 
026+     [result] => Decimal\Decimal Object
027+         (
028+             [value] => NAN
029+             [precision] => 34
030+         )
031+ 
032+     [expect] => INF
033+     [prec] => 34
034+ )
035+ Array
036+ (
037+     [op1] => Decimal\Decimal Object
038+         (
039+             [value] => INF
040+             [precision] => 10
041+         )
042+ 
043+     [result] => Decimal\Decimal Object
044+         (
045+             [value] => NAN
046+             [precision] => 10
047+         )
048+ 
049+     [expect] => INF
050+     [prec] => 10
051+ )
052+ Array
053+ (
054+     [op1] => Decimal\Decimal Object
055+         (
056+             [value] => -INF
057+             [precision] => 10
058+         )
059+ 
060+     [result] => Decimal\Decimal Object
061+         (
062+             [value] => NAN
063+             [precision] => 10
064+         )
065+ 
066+     [expect] => -INF
067+     [prec] => 10
068+ )
========DONE========
FAIL Decimal::floor [tests/Decimal/methods/floor.phpt] 


TEST 41/100 [tests/Decimal/methods/trunc.phpt]
========DIFF========
001+ Array
002+ (
003+     [op1] => Decimal\Decimal Object
004+         (
005+             [value] => -INF
006+             [precision] => 34
007+         )
009+     [result] => Decimal\Decimal Object
010+         (
011+             [value] => NAN
012+             [precision] => 34
013+         )
014+ 
015+     [expect] => -INF
016+     [prec] => 34
017+ )
018+ Array
019+ (
020+     [op1] => Decimal\Decimal Object
021+         (
022+             [value] => INF
023+             [precision] => 34
024+         )
025+ 
026+     [result] => Decimal\Decimal Object
027+         (
028+             [value] => NAN
029+             [precision] => 34
030+         )
031+ 
032+     [expect] => INF
033+     [prec] => 34
034+ )
035+ Array
036+ (
037+     [op1] => Decimal\Decimal Object
038+         (
039+             [value] => INF
040+             [precision] => 10
041+         )
042+ 
043+     [result] => Decimal\Decimal Object
044+         (
045+             [value] => NAN
046+             [precision] => 10
047+         )
048+ 
049+     [expect] => INF
050+     [prec] => 10
051+ )
052+ Array
053+ (
054+     [op1] => Decimal\Decimal Object
055+         (
056+             [value] => -INF
057+             [precision] => 10
058+         )
059+ 
060+     [result] => Decimal\Decimal Object
061+         (
062+             [value] => NAN
063+             [precision] => 10
064+         )
065+ 
066+     [expect] => -INF
067+     [prec] => 10
068+ )
========DONE========
FAIL Decimal::trunc [tests/Decimal/methods/trunc.phpt] 

@rtheunissen
Copy link
Contributor

Thank you for the report @remicollet, this has now been fixed as part of 1.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants