Skip to content

Commit 0ce599a

Browse files
committed
Update test case
1 parent 1ebb4b4 commit 0ce599a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/tests.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,7 @@ fn test_safe_integers() -> Result<()> {
500500
{
501501
assert_ne!(f.call::<i64>(MAX_SAFE_INTEGER + 2)?, MAX_SAFE_INTEGER + 2);
502502
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);
503+
assert_eq!(f.call::<f64>(i64::MAX)?, i64::MAX as f64);
506504
}
507505

508506
Ok(())

0 commit comments

Comments
 (0)