DCIT / perl-CryptX

https://metacpan.org/pod/CryptX
Other
35 stars 23 forks source link

Tests failing for numbers with multiple underscore characters #76

Closed pjacklam closed 3 years ago

pjacklam commented 3 years ago

Math::BigInt and Math::BigFloat now accept numbers with multiple underscores in them. This is because they are accepted by Perl itself. For instance,

$ perl -le 'print 1__2'
12

When the following strings were given as input to Math::BigInt and Math::BigFloat, they used to result in a NaN. This is no longer the case.

1__2
1E1__2
11__2E2
0b__101
0x__123
123_
1__23
1_E12

I suggest that the test files t/mbi_ltm_bigfltpm.t and t/mbi_ltm_bigintpm.t are updated to reflect these changes.

karel-m commented 3 years ago

Thanks for notifying me.