diff --git a/src/problems/problemData.ts b/src/problems/problemData.ts index 760549ee..2c878aee 100644 --- a/src/problems/problemData.ts +++ b/src/problems/problemData.ts @@ -1301,7 +1301,7 @@ s.get('c1').turnRight(); s.set('i', 0); s.get('c1').forward(); -s.set('c2', new Character(<2-5>, <3-5>, 'G')); +s.set('c2', new Character(2, 3, 'G')); s.get('c2').forward(); s.set('foo', 'あいうえお'); s.set('bar', <1-100>); @@ -1318,7 +1318,7 @@ public class Main { int i = 0; // sid c1.forward(); // sid - Character c2 = new Character(<2-5>, <3-5>, "green"); // sid + Character c2 = new Character(2, 3, "green"); // sid c2.forward(); // sid String foo = "あいうえお"; // sid int bar = <1-100>; // sid diff --git a/tests/unit/traceCode.test.ts b/tests/unit/traceCode.test.ts index 86e501ee..a30b39db 100644 --- a/tests/unit/traceCode.test.ts +++ b/tests/unit/traceCode.test.ts @@ -248,7 +248,7 @@ public class Main { Character c2 = new Character(2, 3, "green"); c2.forward(); String foo = "あいうえお"; - int bar = 79; + int bar = 23; i = bar + 1; c2.forward(); c2.forward(); @@ -362,7 +362,7 @@ public class Main { c2: { ...defaultCharacter, x: 2, y: 4, color: 'G' }, i: 0, foo: 'あいうえお', - bar: 79, + bar: 23, }, board: getBoard([ { x: sx, y: sy, color: '#' }, @@ -377,9 +377,9 @@ public class Main { vars: { c1: { ...defaultCharacter, x: sx + 1, y: sy + 1, dir: 'E' }, c2: { ...defaultCharacter, x: 2, y: 4, color: 'G' }, - i: 80, + i: 24, foo: 'あいうえお', - bar: 79, + bar: 23, }, board: getBoard([ { x: sx, y: sy, color: '#' }, @@ -394,9 +394,9 @@ public class Main { vars: { c1: { ...defaultCharacter, x: sx + 1, y: sy + 1, dir: 'E' }, c2: { ...defaultCharacter, x: 2, y: 5, color: 'G' }, - i: 80, + i: 24, foo: 'あいうえお', - bar: 79, + bar: 23, }, board: getBoard([ { x: sx, y: sy, color: '#' }, @@ -412,9 +412,9 @@ public class Main { vars: { c1: { ...defaultCharacter, x: sx + 1, y: sy + 1, dir: 'E' }, c2: { ...defaultCharacter, x: 2, y: 6, color: 'G' }, - i: 80, + i: 24, foo: 'あいうえお', - bar: 79, + bar: 23, }, board: getBoard([ { x: sx, y: sy, color: '#' },