@Test
public void long_values() throws Exception {
CsvParser parser = create("0,1,50,-1,-50,"
+ Long.MAX_VALUE + ","
+ Long.MIN_VALUE + ", 0,0 ,");
LongOption option = new LongOption();
assertThat(parser.next(), is(true));
parser.fill(option);
assertThat(option.get(), is((long) 0));
parser.fill(option);
assertThat(option.get(), is((long) 1));
parser.fill(option);
assertThat(option.get(), is((long) 50));
parser.fill(option);
assertThat(option.get(), is((long) -1));
parser.fill(option);
assertThat(option.get(), is((long) -50));
parser.fill(option);
assertThat(option.get(), is(Long.MAX_VALUE));
parser.fill(option);
assertThat(option.get(), is(Long.MIN_VALUE));
parser.fill(option);
assertThat(option.get(), is((long) 0));
parser.fill(option);
assertThat(option.get(), is((long) 0));
parser.fill(option);
assertThat(option.isNull(), is(true));
parser.endRecord();
assertThat(parser.next(), is(false));
}