private void testParse(String text, Formula expected) { Formula result = FormulaParser.instance().parse(text); assertEquals(expected, result); if (result.hasErrors()) { fail(result.getErrors().toString()); } }
private void testParseError(String text) { Formula result = FormulaParser.instance().parse(text); assertTrue(result.hasErrors()); }