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