()
| 240 | |
| 241 | |
| 242 | @Test |
| 243 | public void testSyntaxError() throws ScannerException, ParserException { |
| 244 | |
| 245 | expectedEx.expect(ParserException.class); |
| 246 | expectedEx.expectMessage("Syntax error"); |
| 247 | |
| 248 | // Missing action operators |
| 249 | List<String> tokens = getTokens("12:38 T: D Pass DM"); |
| 250 | |
| 251 | new Parser(tokens).parse(); |
| 252 | } |
| 253 | |
| 254 | @Test |
| 255 | public void testInvalidTimeSeparator() throws ScannerException, ParserException { |