@Test
public void decimal_values() throws Exception {
CsvParser parser = create(
"0,1,50,-1,-50,"
+ "0.5,-0.5,3.1415,-3.1415, 0,0 , ,");
DecimalOption option = new DecimalOption();
assertThat(parser.next(), is(true));
parser.fill(option);
assertThat(option.get(), is(decimal("0")));
parser.fill(option);
assertThat(option.get(), is(decimal("1")));
parser.fill(option);
assertThat(option.get(), is(decimal("50")));
parser.fill(option);
assertThat(option.get(), is(decimal("-1")));
parser.fill(option);
assertThat(option.get(), is(decimal("-50")));
parser.fill(option);
assertThat(option.get(), is(decimal("0.5")));
parser.fill(option);
assertThat(option.get(), is(decimal("-0.5")));
parser.fill(option);
assertThat(option.get(), is(decimal("3.1415")));
parser.fill(option);
assertThat(option.get(), is(decimal("-3.1415")));
parser.fill(option);
assertThat(option.get(), is(decimal("0")));
parser.fill(option);
assertThat(option.get(), is(decimal("0")));
parser.fill(option);
assertThat(option.isNull(), is(true));
parser.fill(option);
assertThat(option.isNull(), is(true));
parser.endRecord();
assertThat(parser.next(), is(false));
}