mirror of
https://github.com/lune-org/lune.git
synced 2025-05-04 10:43:57 +01:00
chore: update 'compile' luau test to support changes made to error handling
This commit is contained in:
parent
b5906b2ec8
commit
4edd1f1f62
1 changed files with 5 additions and 4 deletions
|
@ -10,7 +10,8 @@ assert(
|
|||
"expected `luau.compile` to return bytecode string"
|
||||
)
|
||||
|
||||
assert(
|
||||
string.byte(luau.compile(BROKEN_LUAU_CODE_BLOCK), 1, 1) == 0,
|
||||
"expected errors to return with \0 byte, error message attached afterwards."
|
||||
)
|
||||
local success = pcall(function()
|
||||
luau.compile(BROKEN_LUAU_CODE_BLOCK)
|
||||
end)
|
||||
|
||||
assert(success == false, "expected 'BROKEN_LUAU_CODE_BLOCK' to fail to compile into bytecode.")
|
||||
|
|
Loading…
Add table
Reference in a new issue