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