summaryrefslogtreecommitdiff
path: root/src/Q9/MovingRobotTest.java
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2019-08-05 13:34:28 -0600
committermo khan <mo@mokhan.ca>2019-08-05 13:34:28 -0600
commit1f5a1647eb36793e06b9136c877941e626d4221b (patch)
tree391cb311fec5e6d27c9f5a46ee0e0321ee4b98de /src/Q9/MovingRobotTest.java
parentd8e4543b237a0aa2ca96e9d3653893ea6e46f75e (diff)
rename robots from X and Y to 1 and 2
Diffstat (limited to 'src/Q9/MovingRobotTest.java')
-rw-r--r--src/Q9/MovingRobotTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Q9/MovingRobotTest.java b/src/Q9/MovingRobotTest.java
index 8731130..0ac68cb 100644
--- a/src/Q9/MovingRobotTest.java
+++ b/src/Q9/MovingRobotTest.java
@@ -185,7 +185,7 @@ public class MovingRobotTest extends TestCase {
Robot r2 = new MovingRobot(9, 9);
String expected =
- "|X| | | | | | | | | |\n"
+ "|1| | | | | | | | | |\n"
+ "| | | | | | | | | | |\n"
+ "| | | | | | | | | | |\n"
+ "| | | | | | | | | | |\n"
@@ -194,7 +194,7 @@ public class MovingRobotTest extends TestCase {
+ "| | | | | | | | | | |\n"
+ "| | | | | | | | | | |\n"
+ "| | | | | | | | | | |\n"
- + "| | | | | | | | | |Y|\n";
+ + "| | | | | | | | | |2|\n";
String result = MovingRobot.printGrid(r1, r2);
System.out.println(expected);