Skip to content

Commit 079f215

Browse files
committed
Renamed unsupportedIn53 variable
1 parent 5dffb6b commit 079f215

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/unit/expressions.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ test.each(["a+=b", "a-=b", "a*=b", "a/=b", "a%=b", "a**=b"])("Binary expressions
4646
});
4747

4848
const supportedInAll = ["~a", "a&b", "a&=b", "a|b", "a|=b", "a^b", "a^=b", "a<<b", "a<<=b", "a>>>b", "a>>>=b"];
49-
const unsupportedIn53 = ["a>>b", "a>>=b"];
50-
const allBinaryOperators = [...supportedInAll, ...unsupportedIn53];
49+
const unsupportedIn53And54 = ["a>>b", "a>>=b"];
50+
const allBinaryOperators = [...supportedInAll, ...unsupportedIn53And54];
5151
test.each(allBinaryOperators)("Bitop [5.1] (%p)", input => {
5252
// Bit operations not supported in 5.1, expect an exception
5353
util.testExpression(input)
@@ -84,14 +84,14 @@ test.each(supportedInAll)("Bitop [5.4] (%p)", input => {
8484
.expectLuaToMatchSnapshot();
8585
});
8686

87-
test.each(unsupportedIn53)("Unsupported bitop 5.3 (%p)", input => {
87+
test.each(unsupportedIn53And54)("Unsupported bitop 5.3 (%p)", input => {
8888
util.testExpression(input)
8989
.setOptions({ luaTarget: tstl.LuaTarget.Lua53, luaLibImport: tstl.LuaLibImportKind.None })
9090
.disableSemanticCheck()
9191
.expectDiagnosticsToMatchSnapshot([unsupportedRightShiftOperator.code]);
9292
});
9393

94-
test.each(unsupportedIn53)("Unsupported bitop 5.4 (%p)", input => {
94+
test.each(unsupportedIn53And54)("Unsupported bitop 5.4 (%p)", input => {
9595
util.testExpression(input)
9696
.setOptions({ luaTarget: tstl.LuaTarget.Lua54, luaLibImport: tstl.LuaLibImportKind.None })
9797
.disableSemanticCheck()

0 commit comments

Comments
 (0)