Codebase list libcryptx-perl / aaa18f2
fix #76 Tests failing for numbers with multiple underscore characters (Math::BigInt::LTM) Karel Miko 2 years ago
2 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
725725 123:123
726726 -123.4567:-123.4567
727727 # invalid inputs
728 1__2:NaN
729 1E1__2:NaN
730 11__2E2:NaN
728 1__2:12
729 1E1__2:1000000000000
730 11__2E2:11200
731731 .2E-3.:NaN
732732 1e3e4:NaN
733733 # strange, but valid
12041204 0b100000000000000000000000000000001:4294967297
12051205 0b1000000000000000000000000000000001:8589934593
12061206 0b10000000000000000000000000000000001:17179869185
1207 0b__101:NaN
1207 0b__101:5
12081208 0b1_0_1:5
12091209 0b0_0_0_1:1
12101210 # hex input
12171217 0x12345678:305419896
12181218 0x1_2_3_4_56_78:305419896
12191219 0xa_b_c_d_e_f:11259375
1220 0x__123:NaN
1220 0x__123:291
12211221 0x9:9
12221222 0x11:17
12231223 0x21:33
12701270 # only one underscore between two digits
12711271 _123:NaN
12721272 _123_:NaN
1273 123_:NaN
1274 1__23:NaN
1275 1E1__2:NaN
1276 1_E12:NaN
1273 123_:123
1274 1__23:123
1275 1E1__2:1000000000000
1276 1_E12:1000000000000
12771277 1E_12:NaN
12781278 1_E_12:NaN
12791279 +_1E12:NaN