@@ -51,7 +51,7 @@ export class MathTests {
5151 @TestCase ( "x &= y" , "x=2;y=6" )
5252 @TestCase ( "x ^= y" , "x=5;y=6" )
5353 @TestCase ( "x <<= y" , "x=192;y=6" )
54- @TestCase ( "x >>= y" , "x=0;y=6" )
54+ @TestCase ( "x >>> = y" , "x=0;y=6" )
5555 @Test ( "Operator assignment statements" )
5656 public opAssignmentStatement ( statement : string , expected : string ) : void {
5757 const result = util . transpileAndExecute (
@@ -76,7 +76,7 @@ export class MathTests {
7676 @TestCase ( "o.p &= a[0]" , "o=2;a=6" )
7777 @TestCase ( "o.p ^= a[0]" , "o=5;a=6" )
7878 @TestCase ( "o.p <<= a[0]" , "o=192;a=6" )
79- @TestCase ( "o.p >>= a[0]" , "o=0;a=6" )
79+ @TestCase ( "o.p >>> = a[0]" , "o=0;a=6" )
8080 @Test ( "Operator assignment to simple property statements" )
8181 public opSimplePropAssignmentStatement ( statement : string , expected : string ) : void {
8282 const result = util . transpileAndExecute (
@@ -101,7 +101,7 @@ export class MathTests {
101101 @TestCase ( "o.p.d &= a[0][0]" , "o=2;a=[6,11],[7,13]" )
102102 @TestCase ( "o.p.d ^= a[0][0]" , "o=5;a=[6,11],[7,13]" )
103103 @TestCase ( "o.p.d <<= a[0][0]" , "o=192;a=[6,11],[7,13]" )
104- @TestCase ( "o.p.d >>= a[0][0]" , "o=0;a=[6,11],[7,13]" )
104+ @TestCase ( "o.p.d >>> = a[0][0]" , "o=0;a=[6,11],[7,13]" )
105105 @Test ( "Operator assignment to deep property statements" )
106106 public opDeepPropAssignmentStatement ( statement : string , expected : string ) : void {
107107 const result = util . transpileAndExecute (
@@ -126,7 +126,7 @@ export class MathTests {
126126 @TestCase ( "of().p &= af()[i()]" , "o=2;a=6" )
127127 @TestCase ( "of().p ^= af()[i()]" , "o=5;a=6" )
128128 @TestCase ( "of().p <<= af()[i()]" , "o=192;a=6" )
129- @TestCase ( "of().p >>= af()[i()]" , "o=0;a=6" )
129+ @TestCase ( "of().p >>> = af()[i()]" , "o=0;a=6" )
130130 @Test ( "Operator assignment to complex property statements" )
131131 public opComplexPropAssignmentStatement ( statement : string , expected : string ) : void {
132132 const result = util . transpileAndExecute (
@@ -154,7 +154,7 @@ export class MathTests {
154154 @TestCase ( "of().p.d &= af()[i()][i()]" , "o=2;a=[7,6],[11,13];i=2" )
155155 @TestCase ( "of().p.d ^= af()[i()][i()]" , "o=5;a=[7,6],[11,13];i=2" )
156156 @TestCase ( "of().p.d <<= af()[i()][i()]" , "o=192;a=[7,6],[11,13];i=2" )
157- @TestCase ( "of().p.d >>= af()[i()][i()]" , "o=0;a=[7,6],[11,13];i=2" )
157+ @TestCase ( "of().p.d >>> = af()[i()][i()]" , "o=0;a=[7,6],[11,13];i=2" )
158158 @Test ( "Operator assignment to complex deep property statements" )
159159 public opComplexDeepPropAssignmentStatement ( statement : string , expected : string ) : void {
160160 const result = util . transpileAndExecute (
@@ -183,7 +183,7 @@ export class MathTests {
183183 @TestCase ( "x &= y" , "2;x=2;y=6" )
184184 @TestCase ( "x ^= y" , "5;x=5;y=6" )
185185 @TestCase ( "x <<= y" , "192;x=192;y=6" )
186- @TestCase ( "x >>= y" , "0;x=0;y=6" )
186+ @TestCase ( "x >>> = y" , "0;x=0;y=6" )
187187 @TestCase ( "x + (y += 7)" , "16;x=3;y=13" )
188188 @TestCase ( "x + (y += 7)" , "16;x=3;y=13" )
189189 @TestCase ( "x++ + (y += 7)" , "16;x=4;y=13" )
@@ -211,7 +211,7 @@ export class MathTests {
211211 @TestCase ( "o.p &= a[0]" , "2;o=2;a=6" )
212212 @TestCase ( "o.p ^= a[0]" , "5;o=5;a=6" )
213213 @TestCase ( "o.p <<= a[0]" , "192;o=192;a=6" )
214- @TestCase ( "o.p >>= a[0]" , "0;o=0;a=6" )
214+ @TestCase ( "o.p >>> = a[0]" , "0;o=0;a=6" )
215215 @TestCase ( "o.p + (a[0] += 7)" , "16;o=3;a=13" )
216216 @TestCase ( "o.p += (a[0] += 7)" , "16;o=16;a=13" )
217217 @TestCase ( "o.p++ + (a[0] += 7)" , "16;o=4;a=13" )
@@ -239,7 +239,7 @@ export class MathTests {
239239 @TestCase ( "of().p &= af()[i()]" , "2;o=2;a=6" )
240240 @TestCase ( "of().p ^= af()[i()]" , "5;o=5;a=6" )
241241 @TestCase ( "of().p <<= af()[i()]" , "192;o=192;a=6" )
242- @TestCase ( "of().p >>= af()[i()]" , "0;o=0;a=6" )
242+ @TestCase ( "of().p >>> = af()[i()]" , "0;o=0;a=6" )
243243 @TestCase ( "of().p + (af()[i()] += 7)" , "16;o=3;a=13" )
244244 @TestCase ( "of().p += (af()[i()] += 7)" , "16;o=16;a=13" )
245245 @TestCase ( "of().p++ + (af()[i()] += 7)" , "16;o=4;a=13" )
0 commit comments