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 1ebb4b4 commit 0ce599aCopy full SHA for 0ce599a
tests/tests.rs
@@ -500,9 +500,7 @@ fn test_safe_integers() -> Result<()> {
500
{
501
assert_ne!(f.call::<i64>(MAX_SAFE_INTEGER + 2)?, MAX_SAFE_INTEGER + 2);
502
assert_ne!(f.call::<i64>(MIN_SAFE_INTEGER - 2)?, MIN_SAFE_INTEGER - 2);
503
-
504
- let n = f.call::<i64>(i64::MAX)?;
505
- println!("i64::MAX = {}", n);
+ assert_eq!(f.call::<f64>(i64::MAX)?, i64::MAX as f64);
506
}
507
508
Ok(())
0 commit comments