Fixed test to use Lua assert
This commit is contained in:
parent
316c6976e4
commit
71fdca5477
|
@ -17,7 +17,7 @@ fn test_load() {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_load_debug() {
|
fn test_load_debug() {
|
||||||
let lua = Lua::new();
|
let lua = Lua::new();
|
||||||
lua.eval::<()>("debug", None).unwrap();
|
lua.exec::<()>("assert(debug == nil)", None).unwrap();
|
||||||
unsafe {
|
unsafe {
|
||||||
lua.load_debug();
|
lua.load_debug();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue