use of org.activityinfo.model.formula.SourcePos in project activityinfo by bedatadriven.
the class FormulaValidatorTest method badNumberOfArguments.
@Test
public void badNumberOfArguments() {
FormulaValidator validator = validate("IF(1)");
assertThat(validator.getErrors(), hasSize(1));
assertThat(validator.getErrors().get(0).getSourceRange(), equalTo(new SourceRange(new SourcePos(0, 0), 5)));
}
Aggregations