mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
attempt 2
This commit is contained in:
parent
b6d724c5b1
commit
6e61878148
2 changed files with 2 additions and 2 deletions
|
@ -683,7 +683,7 @@ TEST_CASE("Reference")
|
||||||
|
|
||||||
TEST_CASE("ApiFunctionCalls")
|
TEST_CASE("ApiFunctionCalls")
|
||||||
{
|
{
|
||||||
StateRef globalState = runConformance("apicalls.lua");
|
StateRef globalState = runConformance("apicalls.luau");
|
||||||
lua_State* L = globalState.get();
|
lua_State* L = globalState.get();
|
||||||
|
|
||||||
lua_getfield(L, LUA_GLOBALSINDEX, "add");
|
lua_getfield(L, LUA_GLOBALSINDEX, "add");
|
||||||
|
|
|
@ -63,7 +63,7 @@ assert(baz(1, "n") == "baz")
|
||||||
assert(baz(2, "n") == "") -- main/anonymous
|
assert(baz(2, "n") == "") -- main/anonymous
|
||||||
assert(baz(3, "n") == nil)
|
assert(baz(3, "n") == nil)
|
||||||
assert(baz(0, "s") == "[C]")
|
assert(baz(0, "s") == "[C]")
|
||||||
assert(baz(1, "s") == "debug.lua")
|
assert(baz(1, "s") == "debug.luau")
|
||||||
assert(baz(0, "l") == -1)
|
assert(baz(0, "l") == -1)
|
||||||
assert(baz(1, "l") > 42)
|
assert(baz(1, "l") > 42)
|
||||||
assert(baz(0, "f") == debug.info)
|
assert(baz(0, "f") == debug.info)
|
||||||
|
|
Loading…
Add table
Reference in a new issue