Add test for i128 Lua round-trip

This commit is contained in:
kyren 2018-09-26 21:13:25 -04:00
parent 6d17a383df
commit 8810c36979

View file

@ -400,6 +400,11 @@ fn test_num_conversion() {
f32::MAX as f64
);
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]