MCPcopy Create free account
hub / github.com/demoth/jake2 / testParseHelp

Method testParseHelp

qcommon/src/test/java/jake2/qcommon/TestCOM.java:64–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 @Test
65 public void testParseHelp() {
66 String test = "testrene = \"ein mal eins\"; a=3 ";
67 Com.ParseHelp ph = new Com.ParseHelp(test);
68
69 Collection<String> result = new ArrayList<>();
70 while (!ph.isEof())
71 result.add(Com.Parse(ph));
72 Assert.assertEquals(Arrays.asList("testrene", "=", "ein mal eins", ";", "a=3", ""), result);
73 }
74
75 @Test
76 public void testParseHelpWithSlash() {

Callers

nothing calls this directly

Calls 3

isEofMethod · 0.95
ParseMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected