@@ -46,8 +46,8 @@ test.each(["a+=b", "a-=b", "a*=b", "a/=b", "a%=b", "a**=b"])("Binary expressions
4646} ) ;
4747
4848const 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 ] ;
5151test . 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