Skip to content

Commit c1e2f65

Browse files
ramdoysramdoys
ramdoys
and
ramdoys
authored
chore: update applicable .lua files to .luau (#1560)
Updates all of the APPLICABLE .lua files to the .luau file ending. --------- Co-authored-by: ramdoys <[email protected]>
1 parent c2e7266 commit c1e2f65

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+65
-65
lines changed

.github/workflows/build.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ jobs:
4646
- name: make cli
4747
run: |
4848
make -j2 config=sanitize werror=1 luau luau-analyze luau-compile # match config with tests to improve build time
49-
./luau tests/conformance/assert.lua
50-
./luau-analyze tests/conformance/assert.lua
51-
./luau-compile tests/conformance/assert.lua
49+
./luau tests/conformance/assert.luau
50+
./luau-analyze tests/conformance/assert.luau
51+
./luau-compile tests/conformance/assert.luau
5252
5353
windows:
5454
runs-on: windows-latest
@@ -81,9 +81,9 @@ jobs:
8181
shell: bash # necessary for fail-fast
8282
run: |
8383
cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI Luau.Compile.CLI --config Debug # match config with tests to improve build time
84-
Debug/luau tests/conformance/assert.lua
85-
Debug/luau-analyze tests/conformance/assert.lua
86-
Debug/luau-compile tests/conformance/assert.lua
84+
Debug/luau tests/conformance/assert.luau
85+
Debug/luau-analyze tests/conformance/assert.luau
86+
Debug/luau-compile tests/conformance/assert.luau
8787
8888
coverage:
8989
runs-on: ubuntu-22.04

fuzz/basic.lua fuzz/basic.luau

File renamed without changes.

tests/Conformance.test.cpp

+46-46
Original file line numberDiff line numberDiff line change
@@ -645,32 +645,32 @@ TEST_CASE("CodegenSupported")
645645

646646
TEST_CASE("Assert")
647647
{
648-
runConformance("assert.lua");
648+
runConformance("assert.luau");
649649
}
650650

651651
TEST_CASE("Basic")
652652
{
653-
runConformance("basic.lua");
653+
runConformance("basic.luau");
654654
}
655655

656656
TEST_CASE("Buffers")
657657
{
658658
ScopedFastFlag luauBufferBitMethods{FFlag::LuauBufferBitMethods2, true};
659659

660-
runConformance("buffers.lua");
660+
runConformance("buffers.luau");
661661
}
662662

663663
TEST_CASE("Math")
664664
{
665665
ScopedFastFlag LuauMathLerp{FFlag::LuauMathLerp, true};
666666

667-
runConformance("math.lua");
667+
runConformance("math.luau");
668668
}
669669

670670
TEST_CASE("Tables")
671671
{
672672
runConformance(
673-
"tables.lua",
673+
"tables.luau",
674674
[](lua_State* L)
675675
{
676676
lua_pushcfunction(
@@ -699,101 +699,101 @@ TEST_CASE("Tables")
699699

700700
TEST_CASE("PatternMatch")
701701
{
702-
runConformance("pm.lua");
702+
runConformance("pm.luau");
703703
}
704704

705705
TEST_CASE("Sort")
706706
{
707-
runConformance("sort.lua");
707+
runConformance("sort.luau");
708708
}
709709

710710
TEST_CASE("Move")
711711
{
712-
runConformance("move.lua");
712+
runConformance("move.luau");
713713
}
714714

715715
TEST_CASE("Clear")
716716
{
717-
runConformance("clear.lua");
717+
runConformance("clear.luau");
718718
}
719719

720720
TEST_CASE("Strings")
721721
{
722722
ScopedFastFlag luauStringFormatFixC{DFFlag::LuauStringFormatFixC, true};
723723

724-
runConformance("strings.lua");
724+
runConformance("strings.luau");
725725
}
726726

727727
TEST_CASE("StringInterp")
728728
{
729-
runConformance("stringinterp.lua");
729+
runConformance("stringinterp.luau");
730730
}
731731

732732
TEST_CASE("VarArg")
733733
{
734-
runConformance("vararg.lua");
734+
runConformance("vararg.luau");
735735
}
736736

737737
TEST_CASE("Locals")
738738
{
739-
runConformance("locals.lua");
739+
runConformance("locals.luau");
740740
}
741741

742742
TEST_CASE("Literals")
743743
{
744-
runConformance("literals.lua");
744+
runConformance("literals.luau");
745745
}
746746

747747
TEST_CASE("Errors")
748748
{
749-
runConformance("errors.lua");
749+
runConformance("errors.luau");
750750
}
751751

752752
TEST_CASE("Events")
753753
{
754-
runConformance("events.lua");
754+
runConformance("events.luau");
755755
}
756756

757757
TEST_CASE("Constructs")
758758
{
759-
runConformance("constructs.lua");
759+
runConformance("constructs.luau");
760760
}
761761

762762
TEST_CASE("Closure")
763763
{
764-
runConformance("closure.lua");
764+
runConformance("closure.luau");
765765
}
766766

767767
TEST_CASE("Calls")
768768
{
769769
ScopedFastFlag LuauStackLimit{DFFlag::LuauStackLimit, true};
770770

771-
runConformance("calls.lua");
771+
runConformance("calls.luau");
772772
}
773773

774774
TEST_CASE("Attrib")
775775
{
776-
runConformance("attrib.lua");
776+
runConformance("attrib.luau");
777777
}
778778

779779
TEST_CASE("GC")
780780
{
781-
runConformance("gc.lua");
781+
runConformance("gc.luau");
782782
}
783783

784784
TEST_CASE("Bitwise")
785785
{
786-
runConformance("bitwise.lua");
786+
runConformance("bitwise.luau");
787787
}
788788

789789
TEST_CASE("UTF8")
790790
{
791-
runConformance("utf8.lua");
791+
runConformance("utf8.luau");
792792
}
793793

794794
TEST_CASE("Coroutine")
795795
{
796-
runConformance("coroutine.lua");
796+
runConformance("coroutine.luau");
797797
}
798798

799799
static int cxxthrow(lua_State* L)
@@ -810,7 +810,7 @@ TEST_CASE("PCall")
810810
ScopedFastFlag LuauStackLimit{DFFlag::LuauStackLimit, true};
811811

812812
runConformance(
813-
"pcall.lua",
813+
"pcall.luau",
814814
[](lua_State* L)
815815
{
816816
lua_pushcfunction(L, cxxthrow, "cxxthrow");
@@ -836,7 +836,7 @@ TEST_CASE("PCall")
836836

837837
TEST_CASE("Pack")
838838
{
839-
runConformance("tpack.lua");
839+
runConformance("tpack.luau");
840840
}
841841

842842
TEST_CASE("Vector")
@@ -881,7 +881,7 @@ TEST_CASE("Vector")
881881
}
882882

883883
runConformance(
884-
"vector.lua",
884+
"vector.luau",
885885
[](lua_State* L)
886886
{
887887
setupVectorHelpers(L);
@@ -915,7 +915,7 @@ TEST_CASE("VectorLibrary")
915915
copts.optimizationLevel = 2;
916916
}
917917

918-
runConformance("vector_library.lua", [](lua_State* L) {}, nullptr, nullptr, &copts);
918+
runConformance("vector_library.luau", [](lua_State* L) {}, nullptr, nullptr, &copts);
919919
}
920920

921921
static void populateRTTI(lua_State* L, Luau::TypeId type)
@@ -993,7 +993,7 @@ TEST_CASE("Types")
993993
ScopedFastFlag luauMathLerp{FFlag::LuauMathLerp, true};
994994

995995
runConformance(
996-
"types.lua",
996+
"types.luau",
997997
[](lua_State* L)
998998
{
999999
Luau::NullModuleResolver moduleResolver;
@@ -1018,12 +1018,12 @@ TEST_CASE("Types")
10181018

10191019
TEST_CASE("DateTime")
10201020
{
1021-
runConformance("datetime.lua");
1021+
runConformance("datetime.luau");
10221022
}
10231023

10241024
TEST_CASE("Debug")
10251025
{
1026-
runConformance("debug.lua");
1026+
runConformance("debug.luau");
10271027
}
10281028

10291029
TEST_CASE("Debugger")
@@ -1050,7 +1050,7 @@ TEST_CASE("Debugger")
10501050
copts.debugLevel = 2;
10511051

10521052
runConformance(
1053-
"debugger.lua",
1053+
"debugger.luau",
10541054
[](lua_State* L)
10551055
{
10561056
lua_Callbacks* cb = lua_callbacks(L);
@@ -1225,7 +1225,7 @@ TEST_CASE("NDebugGetUpValue")
12251225
copts.optimizationLevel = 0;
12261226

12271227
runConformance(
1228-
"ndebug_upvalues.lua",
1228+
"ndebug_upvalues.luau",
12291229
nullptr,
12301230
[](lua_State* L)
12311231
{
@@ -1456,7 +1456,7 @@ TEST_CASE("ApiIter")
14561456

14571457
TEST_CASE("ApiCalls")
14581458
{
1459-
StateRef globalState = runConformance("apicalls.lua", nullptr, nullptr, lua_newstate(limitedRealloc, nullptr));
1459+
StateRef globalState = runConformance("apicalls.luau", nullptr, nullptr, lua_newstate(limitedRealloc, nullptr));
14601460
lua_State* L = globalState.get();
14611461

14621462
// lua_call
@@ -1783,7 +1783,7 @@ TEST_CASE("ExceptionObject")
17831783
return ExceptionResult{false, ""};
17841784
};
17851785

1786-
StateRef globalState = runConformance("exceptions.lua", nullptr, nullptr, lua_newstate(limitedRealloc, nullptr));
1786+
StateRef globalState = runConformance("exceptions.luau", nullptr, nullptr, lua_newstate(limitedRealloc, nullptr));
17871787
lua_State* L = globalState.get();
17881788

17891789
{
@@ -1822,7 +1822,7 @@ TEST_CASE("ExceptionObject")
18221822

18231823
TEST_CASE("IfElseExpression")
18241824
{
1825-
runConformance("ifelseexpr.lua");
1825+
runConformance("ifelseexpr.luau");
18261826
}
18271827

18281828
// Optionally returns debug info for the first Luau stack frame that is encountered on the callstack.
@@ -1860,7 +1860,7 @@ TEST_CASE("TagMethodError")
18601860
auto yieldCallback = [](lua_State* L) {};
18611861

18621862
runConformance(
1863-
"tmerror.lua",
1863+
"tmerror.luau",
18641864
[](lua_State* L)
18651865
{
18661866
auto* cb = lua_callbacks(L);
@@ -1898,7 +1898,7 @@ TEST_CASE("Coverage")
18981898
copts.coverageLevel = 2;
18991899

19001900
runConformance(
1901-
"coverage.lua",
1901+
"coverage.luau",
19021902
[](lua_State* L)
19031903
{
19041904
lua_pushcfunction(
@@ -1952,7 +1952,7 @@ TEST_CASE("Coverage")
19521952

19531953
TEST_CASE("StringConversion")
19541954
{
1955-
runConformance("strconv.lua");
1955+
runConformance("strconv.luau");
19561956
}
19571957

19581958
TEST_CASE("GCDump")
@@ -2065,7 +2065,7 @@ TEST_CASE("Interrupt")
20652065

20662066
static int index;
20672067

2068-
StateRef globalState = runConformance("interrupt.lua", nullptr, nullptr, nullptr, &copts);
2068+
StateRef globalState = runConformance("interrupt.luau", nullptr, nullptr, nullptr, &copts);
20692069

20702070
lua_State* L = globalState.get();
20712071

@@ -2366,7 +2366,7 @@ TEST_CASE("DebugApi")
23662366

23672367
TEST_CASE("Iter")
23682368
{
2369-
runConformance("iter.lua");
2369+
runConformance("iter.luau");
23702370
}
23712371

23722372
const int kInt64Tag = 1;
@@ -2395,7 +2395,7 @@ static void pushInt64(lua_State* L, int64_t value)
23952395
TEST_CASE("Userdata")
23962396
{
23972397
runConformance(
2398-
"userdata.lua",
2398+
"userdata.luau",
23992399
[](lua_State* L)
24002400
{
24012401
// create metatable with all the metamethods
@@ -2617,7 +2617,7 @@ TEST_CASE("Userdata")
26172617

26182618
TEST_CASE("SafeEnv")
26192619
{
2620-
runConformance("safeenv.lua");
2620+
runConformance("safeenv.luau");
26212621
}
26222622

26232623
TEST_CASE("Native")
@@ -2639,7 +2639,7 @@ TEST_CASE("Native")
26392639
}
26402640

26412641
runConformance(
2642-
"native.lua",
2642+
"native.luau",
26432643
[](lua_State* L)
26442644
{
26452645
setupNativeHelpers(L);
@@ -2654,7 +2654,7 @@ TEST_CASE("NativeTypeAnnotations")
26542654
return;
26552655

26562656
runConformance(
2657-
"native_types.lua",
2657+
"native_types.luau",
26582658
[](lua_State* L)
26592659
{
26602660
setupNativeHelpers(L);
@@ -2717,7 +2717,7 @@ TEST_CASE("NativeUserdata")
27172717
}
27182718

27192719
runConformance(
2720-
"native_userdata.lua",
2720+
"native_userdata.luau",
27212721
[](lua_State* L)
27222722
{
27232723
Luau::CodeGen::setUserdataRemapper(
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/conformance/basic.lua tests/conformance/basic.luau

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ assert(foo(1, 2, 3) == 2)
3636
assert(concat(pcall(function () end)) == "true")
3737
assert(concat(pcall(function () return nil end)) == "true,nil")
3838
assert(concat(pcall(function () return 1,2,3 end)) == "true,1,2,3")
39-
assert(concat(pcall(function () error("oops") end)) == "false,basic.lua:39: oops")
39+
assert(concat(pcall(function () error("oops") end)) == "false,basic.luau:39: oops")
4040

4141
-- assignments
4242
assert((function() local a = 1 a = 2 return a end)() == 2)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/conformance/closure.lua tests/conformance/closure.luau

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ function foo ()
284284
error("foo")
285285
end
286286

287-
local fooerr = "closure.lua:284: foo"
287+
local fooerr = "closure.luau:284: foo"
288288

289289
function goo() foo() end
290290
x = coroutine.wrap(goo)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)