Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit 1a499f9

Browse files
committed
Added testing of comments in script files.
1 parent 57eb918 commit 1a499f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Robot2018/test/org/usfirst/frc/team199/Robot2018/ParseScriptFileTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ void test8() {
108108
@Test
109109
void test9() {
110110
String input = "RRxx:\n"
111-
+ "moveto (42,56) 45\n"
111+
+ "moveto (42,56) 45 # Trailing comment should not break anything \n"
112112
+ "scale\n"
113-
+ "move 46\n"
113+
+ "#move 10\n" // For testing that commented lines are ignored
114+
+ "move 46\n"
114115
+ "LRxx:\n"
115116
+ "intake\n"
116117
+ "turn (32,5)\n";

0 commit comments

Comments
 (0)