We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb2d753 commit bd505ddCopy full SHA for bd505dd
src/common.rs
@@ -414,14 +414,8 @@ mod tests {
414
fn number_from_i32_and_to_i64_conversion() {
415
assert_eq!(Number::from(1).as_i64(), Some(1));
416
assert_eq!(Number::from(584).as_i64(), Some(584));
417
- assert_eq!(
418
- Number::from(i32::min_value()).as_i64(),
419
- Some(i32::min_value() as i64)
420
- );
421
422
- Number::from(i32::max_value()).as_i64(),
423
- Some(i32::max_value() as i64)
424
+ assert_eq!(Number::from(i32::MIN).as_i64(), Some(i32::MIN as i64));
+ assert_eq!(Number::from(i32::MAX).as_i64(), Some(i32::MAX as i64));
425
}
426
427
#[test]
0 commit comments