diff options
Diffstat (limited to 'tests/tests.rs')
-rw-r--r-- | tests/tests.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index c31a4e6..8383afe 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -373,6 +373,10 @@ fn test_num_conversion() { lua.exec::<()>("a = math.huge", None).unwrap(); assert!(globals.get::<_, i64>("n").is_err()); + + assert!(lua.eval::<u64>("-1", None).is_err()); + assert!(lua.eval::<i64>("-1", None).is_ok()); + assert!(lua.pack(1u128 << 64).is_err()); } #[test] |