summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2022-08-23 11:35:08 +0100
committerAlex Orlenko <zxteam@protonmail.com>2022-08-23 11:35:08 +0100
commit33278d4a64addd0b1bcdd0cd11b7f3ba9c618b28 (patch)
treeac07ea8fd9e4a8cc48c2ad54fd123d2917697d2f /tests
parent20a16839aa07c29aacc17871d12fe1b397c2bab8 (diff)
downloadmlua-33278d4a64addd0b1bcdd0cd11b7f3ba9c618b28.zip
Check if chunk is empty in luaL_loadbufferx for Luau (fixes #200)
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index d7a5d65..59fb28f 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -73,6 +73,7 @@ fn test_load() -> Result<()> {
let result: i32 = func.call(())?;
assert_eq!(result, 3);
+ assert!(lua.load("").exec().is_ok());
assert!(lua.load("§$%§&$%&").exec().is_err());
Ok(())