diff options
author | Alex Orlenko <zxteam@protonmail.com> | 2022-08-23 11:35:08 +0100 |
---|---|---|
committer | Alex Orlenko <zxteam@protonmail.com> | 2022-08-23 11:35:08 +0100 |
commit | 33278d4a64addd0b1bcdd0cd11b7f3ba9c618b28 (patch) | |
tree | ac07ea8fd9e4a8cc48c2ad54fd123d2917697d2f /tests | |
parent | 20a16839aa07c29aacc17871d12fe1b397c2bab8 (diff) | |
download | mlua-33278d4a64addd0b1bcdd0cd11b7f3ba9c618b28.zip |
Check if chunk is empty in luaL_loadbufferx for Luau (fixes #200)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.rs | 1 |
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(()) |