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 ef8b8e1 commit 8e244a2Copy full SHA for 8e244a2
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