Christiaan Dirkx
6554086526
Add u128 and i128 integer tests
2020-11-14 20:27:08 +01:00
Dylan DPC
d69ee57f97
Rollup merge of #77640 - ethanboxx:int_error_matching_attempt_2, r=KodrAus
...
Refactor IntErrorKind to avoid "underflow" terminology
This PR is a continuation of #76455
# Changes
- `Overflow` renamed to `PosOverflow` and `Underflow` renamed to `NegOverflow` after discussion in #76455
- Changed some of the parsing code to return `InvalidDigit` rather than `Empty` for strings "+" and "-". https://users.rust-lang.org/t/misleading-error-in-str-parse-for-int-types/49178
- Carry the problem `char` with the `InvalidDigit` variant.
- Necessary changes were made to the compiler as it depends on `int_error_matching`.
- Redid tests to match on specific errors.
r? ```@KodrAus```
2020-11-09 01:13:25 +01:00
chansuke
f9b139f9c4
Add mod nan
for test
2020-11-05 12:57:18 +09:00
chansuke
97d5a1be3f
Fix format
2020-11-05 08:40:04 +09:00
chansuke
5855fb7b79
Move f64::NAN ui tests into library
2020-11-05 08:32:07 +09:00
Ethan Brierley
ad2d93da1f
Apply suggested changes
2020-10-26 18:14:12 +00:00
est31
a0fc455d30
Replace absolute paths with relative ones
...
Modern compilers allow reaching external crates
like std or core via relative paths in modules
outside of lib.rs and main.rs.
2020-10-13 14:16:45 +02:00
Ethan Brierley
f233abb909
Add comment to helper function
2020-10-07 08:02:36 +01:00
Ethan Brierley
1e7e2e40e4
remove OnlySign in favour of InvalidDigit
2020-10-06 22:42:33 +01:00
Ethan Brierley
83d294f06a
Bring char along with InvalidDigit
2020-10-06 19:05:25 +01:00
Ethan Brierley
c027844795
Fill in things needed to stabilize int_error_matching
2020-10-06 14:06:25 +01:00
Jonas Schievink
389f7cf7d6
Rollup merge of #76745 - workingjubilee:move-wrapping-tests, r=matklad
...
Move Wrapping<T> ui tests into library
Part of #76268
r? @matklad
2020-10-03 00:31:08 +02:00
Jubilee Young
4e973966b9
Remove unnecessary mod-cfg
2020-10-02 11:40:57 -07:00
Mara Bos
74952b9f21
Fix FIXME in core::num test: Check sign of zero in min/max tests.
2020-09-24 22:29:32 +02:00
Mara Bos
1e2dba1e7c
Use T::BITS
instead of size_of::<T> * 8
.
2020-09-19 06:54:42 +02:00
Jubilee Young
797cb9526a
Fix to libstd test
2020-09-15 08:47:20 -07:00
Jubilee Young
247b73939a
Move Wrapping<T> ui tests into library
2020-09-15 07:15:59 -07:00
Ayush Kumar Mishra
dc37b553ac
Minor refactoring
2020-09-05 17:07:53 +05:30
Ayush Kumar Mishra
941dca8ed2
Add Arith Tests in Library
2020-09-05 16:52:52 +05:30
Ralf Jung
56129d39c0
flt2dec: properly handle uninitialized memory
2020-09-02 12:41:38 +02:00
Ralf Jung
7468f632ff
also reduce some libcore test iteration counts
2020-07-31 11:56:08 +02:00
mark
2c31b45ae8
mv std libs to library/
2020-07-27 19:51:13 -05:00