Add test for i128 Lua round-trip
This commit is contained in:
parent
6d17a383df
commit
8810c36979
|
@ -400,6 +400,11 @@ fn test_num_conversion() {
|
||||||
f32::MAX as f64
|
f32::MAX as f64
|
||||||
);
|
);
|
||||||
assert!(lua.unpack::<f32>(lua.pack(f64::MAX).unwrap()).is_err());
|
assert!(lua.unpack::<f32>(lua.pack(f64::MAX).unwrap()).is_err());
|
||||||
|
|
||||||
|
assert_eq!(
|
||||||
|
lua.unpack::<i128>(lua.pack(1i128 << 64).unwrap()).unwrap(),
|
||||||
|
1i128 << 64
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in New Issue