MCPcopy Create free account
hub / github.com/atas76/openengine / testSyntaxError

Method testSyntaxError

src/test/java/org/fgn/ParserTest.java:242–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

getTokensMethod · 0.95
parseMethod · 0.45

Tested by

no test coverage detected