about summary refs log tree commit diff
path: root/library/core/tests/num
AgeCommit message (Expand)AuthorLines
2023-01-21Remove unnecessary `&format!`Nikolai Vazquez-1/+1
2023-01-04Update rand in the stdlib tests, and remove the getrandom feature from itThom Chiovoloni-4/+2
2022-11-16Auto merge of #102935 - ajtribick:display-float-0.5-fixed-0, r=scottmcmbors-2/+2
2022-10-14more dupe word typosRageking8-1/+1
2022-10-12Rollup merge of #102578 - lukas-code:ilog-panic, r=m-ou-seDylan DPC-0/+30
2022-10-11Fix inconsistent rounding of 0.5 when formatted to 0 decimal placesAndrew Tribick-2/+2
2022-10-07make const_err a hard errorRalf Jung-2/+0
2022-10-02add tests for panicking integer logarithmsLukas Markeffsky-0/+30
2022-09-09Auto merge of #93873 - Stovent:big-ints, r=m-ou-sebors-0/+48
2022-08-09Rename integer log* methods to ilog*Eric Holk-78/+78
2022-05-30Implement carrying_add and borrowing_sub on signed numbersStovent-0/+48
2022-05-04Update `int_roundings` methods from feedbackJacob Pratt-14/+14
2022-04-18Remove unused macro rulesest31-12/+0
2022-04-12Auto merge of #95399 - gilescope:plan_b, r=scottmcmbors-1/+70
2022-04-11better def of is signed in tests.Giles Cope-8/+2
2022-04-10Use Add, Sub, Mul traits instead of unsafeGiles Cope-1/+31
2022-04-04from_u32(0) can just be default()Giles Cope-1/+46
2022-03-31skip slow int_log tests in MiriRalf Jung-0/+10
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-7/+7
2022-03-01Miri/CTFE: properly treat overflow in (signed) division/rem as UBRalf Jung-0/+10
2022-01-10Simplification of BigNum::bit_lengthChristopher Swenson-0/+35
2021-11-22Revert "Temporarily rename int_roundings functions to avoid conflicts"Jacob Pratt-22/+22
2021-11-20Implement IEEE 754-2019 minimun and maximum functions for f32/f64Loïc BRANSTETT-0/+61
2021-10-12Auto merge of #88788 - falk-hueffner:speedup-int-log10-branchless, r=joshtrip...bors-0/+3
2021-09-22Temporarily rename int_roundings functions to avoid conflictsJosh Triplett-22/+22
2021-09-09Speed up integer log10.Falk Hüffner-0/+3
2021-09-05Change return type for T::{log,log2,log10} to u32. The value is atFalk Hüffner-11/+11
2021-09-02Implement #88581Jacob Pratt-0/+74
2021-08-07Add test for int to floatAlbin Hedman-0/+4
2021-08-07Add testsAlbin Hedman-0/+23
2021-07-17Auto merge of #86761 - Alexhuszagh:master, r=estebankbors-200/+237
2021-07-17Changed dec2flt to use the Eisel-Lemire algorithm.Alex Huszagh-200/+237
2021-07-07test integer log10 values close to all powers of 10Trevor Spiteri-0/+54
2021-07-07Rollup merge of #80918 - yoshuawuyts:int-log2, r=m-ou-seYuki Okushi-0/+100
2021-06-25Add Integer::{log,log2,log10} variantsYoshua Wuyts-0/+100
2021-06-06Move `flt2dec::{Formatted, Part}` to dedicated moduleGary Guo-1/+2
2021-03-22Preserve signed zero on roundtripJubilee Young-158/+88
2021-03-22Add IEEE754 testsJubilee Young-0/+159
2021-01-15Re-enable all num tests on WASMSmitty-7/+0
2021-01-13Adds tests to ensure some base op traits exist.Philippe Laflamme-0/+245
2021-01-13Avoid ident concatenation in macro.Philippe Laflamme-14/+15
2021-01-13Fix missing mod declaration for Wrapping tests.Philippe Laflamme-0/+1
2020-11-30Make ui test that are run-pass and do not test the compiler itself library testsChristiaan Dirkx-0/+233
2020-11-29Update tests to remove old numeric constantsbstrie-1/+0
2020-11-14Add u128 and i128 integer testsChristiaan Dirkx-6/+10
2020-11-09Rollup merge of #77640 - ethanboxx:int_error_matching_attempt_2, r=KodrAusDylan DPC-26/+39
2020-11-05Add `mod nan` for testchansuke-0/+2
2020-11-05Fix formatchansuke-5/+5
2020-11-05Move f64::NAN ui tests into `library`chansuke-0/+8
2020-10-26Apply suggested changesEthan Brierley-8/+8