Skip to content

Commit 6d25d96

Browse files
committed
Add user test data
1 parent 7c3f750 commit 6d25d96

File tree

1 file changed

+115
-0
lines changed

1 file changed

+115
-0
lines changed

test_data/test.txt

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
USER TEST DATA
2+
----------------------------------------------------------------------------------------
3+
4+
The sample data provided in this file was by testing against the following UAT criteria.
5+
6+
----------------------------------------------------------------------------------------
7+
8+
__PLACE__
9+
1. Robot can only be placed inside the 5x5 square table top. Invalid PLACE actions are
10+
completely ignored.
11+
12+
> PLACE 6,0,NORTH
13+
> REPORT
14+
> PLACE 4,4,NORTH
15+
> REPORT
16+
> Output: 4,4,NORTH
17+
> PLACE 6,6,SOUTH
18+
> REPORT
19+
> Output: 4,4,NORTH
20+
>
21+
22+
23+
2. After a successful PLACE action, a second PLACE action can occur too.
24+
25+
> PLACE 0,0,NORTH
26+
> REPORT
27+
> Output: 0,0,NORTH
28+
> PLACE 3,2,WEST
29+
> REPORT
30+
> Output: 3,2,WEST
31+
>
32+
33+
34+
3. Other valid commands are ignored until the robot has been placed on the table top
35+
36+
> MOVE
37+
> LEFT
38+
> RIGHT
39+
> REPORT
40+
> PLACE 0,0,NORTH
41+
> REPORT
42+
> Output: 0,0,NORTH
43+
>
44+
45+
46+
__MOVE__
47+
4. Robot moves forward in the direction it's facing by 1 space
48+
49+
> PLACE 0,0,NORTH
50+
> REPORT
51+
> Output: 0,0,NORTH
52+
> MOVE
53+
> REPORT
54+
> Output: 0,1,NORTH
55+
>
56+
57+
58+
5. Robot cannot move forward passed the boundaries of the table top
59+
60+
> PLACE 4,4,NORTH
61+
> MOVE
62+
> REPORT
63+
> Output: 4,4,NORTH
64+
> MOVE
65+
> REPORT
66+
> Output: 4,4,NORTH
67+
>
68+
69+
70+
__LEFT__
71+
6. Robot turns 90 degrees to the left
72+
73+
> PLACE 4,4,NORTH
74+
> LEFT
75+
> REPORT
76+
> Output: 4,4,WEST
77+
>
78+
79+
80+
__RIGHT__
81+
7. Robot turns 90 degrees to the right
82+
83+
> PLACE 4,4,NORTH
84+
> RIGHT
85+
> REPORT
86+
> Output: 4,4,EAST
87+
>
88+
89+
90+
__REPORT__
91+
8. Robot's current position is output to the terminal
92+
93+
> PLACE 4,4,NORTH
94+
> REPORT
95+
> Output: 4,4,EAST
96+
>
97+
98+
99+
__EXIT__
100+
9. Gracefully exit the program
101+
102+
> EXIT
103+
> Goodbye!
104+
105+
106+
__INVALID COMMANDS__
107+
10. Invalid command options are ignored, including special characters
108+
109+
> HELLO
110+
> 54
111+
> {}
112+
>
113+
> ;
114+
>
115+

0 commit comments

Comments
 (0)