private String input, expected;
private int precision, scale;
@Test
public void checkParse() {
ValueSource source = new Value(MString.varcharFor(input), input);
Value target = new Value(MNumeric.DECIMAL.instance(precision, scale, true));
TExecutionContext context =
new TExecutionContext(null, Arrays.asList(source.getType()), target.getType(), null,
ErrorHandlingMode.IGNORE, ErrorHandlingMode.IGNORE, ErrorHandlingMode.IGNORE);
MParsers.DECIMAL.parse(context, source, target);
BigDecimal actual = ((BigDecimalWrapper)target.getObject()).asBigDecimal();
assertEquals(input, new BigDecimal(expected), actual);
}