@Test
public void toSingleDate() {

    CSLDate d = DateParser.toDateSingle("2013", "Aug");
    assertArrayEquals(new int[][] { new int[] { 2013, 8 } }, d.getDateParts());
    d = DateParser.toDateSingle("2013", "march");
    assertArrayEquals(new int[][] { new int[] { 2013, 3 } }, d.getDateParts());
    d = DateParser.toDateSingle("2000", "1");
    assertArrayEquals(new int[][] { new int[] { 2000, 1 } }, d.getDateParts());
    d = DateParser.toDateSingle("2013", "Januar");
    assertArrayEquals(new int[][] { new int[] { 2013, 1 } }, d.getDateParts());
    d = DateParser.toDateSingle("2013", null);
    assertArrayEquals(new int[][] { new int[] { 2013 } }, d.getDateParts());
    d = DateParser.toDateSingle("2013", "nothing");
    assertArrayEquals(new int[][] { new int[] { 2013 } }, d.getDateParts());
    d = DateParser.toDateSingle("in 2013", null);
    assertArrayEquals(new int[][] { new int[] { 2013 } }, d.getDateParts());
    assertTrue(d.getCirca());
    d = DateParser.toDateSingle(null, null);
    assertNull(d);
}