Add test ensuring behaviour is correct
This commit is contained in:
parent
8ac27877e4
commit
f9c451bd26
10
src/tests.rs
10
src/tests.rs
|
@ -629,6 +629,16 @@ fn test_recursive_callback_panic() {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_set_metatable_nil() {
|
||||||
|
let lua = Lua::new();
|
||||||
|
lua.exec::<()>(
|
||||||
|
r#"
|
||||||
|
a = {}
|
||||||
|
setmetatable(a, nil)
|
||||||
|
"#, None).unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Need to use compiletest-rs or similar to make sure these don't compile.
|
// TODO: Need to use compiletest-rs or similar to make sure these don't compile.
|
||||||
/*
|
/*
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in New Issue