summaryrefslogtreecommitdiff
path: root/src/Q9/MovingRobotTest.java
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2019-08-05 13:15:14 -0600
committermo khan <mo@mokhan.ca>2019-08-05 13:15:14 -0600
commit151b106f5d265f17ccf38e978c197e1e38dc4deb (patch)
treea3ef81ee204ef9015990b39c9712abdb0372c2d0 /src/Q9/MovingRobotTest.java
parent3b7c58abefca9db8b1b3431e308fccbe5eeab1e9 (diff)
print full 10x10 grid
Diffstat (limited to 'src/Q9/MovingRobotTest.java')
-rw-r--r--src/Q9/MovingRobotTest.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Q9/MovingRobotTest.java b/src/Q9/MovingRobotTest.java
index dbc5671..a91c984 100644
--- a/src/Q9/MovingRobotTest.java
+++ b/src/Q9/MovingRobotTest.java
@@ -148,7 +148,17 @@ public class MovingRobotTest extends TestCase {
Robot r1 = new MovingRobot(0, 0);
Robot r2 = new MovingRobot(9, 9);
- String expected = "|X| | | | | | | | | |\n";
+ String expected =
+ "|X| | | | | | | | | |\n"
+ + "| | | | | | | | | | |\n"
+ + "| | | | | | | | | | |\n"
+ + "| | | | | | | | | | |\n"
+ + "| | | | | | | | | | |\n"
+ + "| | | | | | | | | | |\n"
+ + "| | | | | | | | | | |\n"
+ + "| | | | | | | | | | |\n"
+ + "| | | | | | | | | | |\n"
+ + "| | | | | | | | | |Y|\n";
String result = MovingRobot.printGrid(r1, r2);
System.out.println(expected);