Skip to content

Commit 83988e0

Browse files
committed
Make the _VERSION test not fail
1 parent 80961a6 commit 83988e0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/globals/_VERSION.luau

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ assert(
3333

3434
assert(tonumber(luneVersion[1]) ~= nil, "_VERSION global lune major version is not a number")
3535
assert(tonumber(luneVersion[2]) ~= nil, "_VERSION global lune minor version is not a number")
36-
assert(tonumber(luneVersion[3]) ~= nil, "_VERSION global lune patch version is not a number")
36+
assert(luneVersion[3] ~= nil, "_VERSION global lune version did not have a patch component")
37+
local patch_number = string.match(luneVersion[3], "^(%d+).*$")
38+
assert(tonumber(patch_number) ~= nil, "_VERSION global lune patch version is not a number")
3739
assert(tonumber(versions[2]) ~= nil, "_VERSION global luau version is not a number")
3840

3941
local rebuilt = string.format(

0 commit comments

Comments
 (0)