add test for a date pattern without the 'T'
This commit is contained in:
@@ -44,8 +44,7 @@ public class FastISODateParserTest {
|
|||||||
Arguments.of("2018-11-18T14:55:49.Z"), //
|
Arguments.of("2018-11-18T14:55:49.Z"), //
|
||||||
Arguments.of("2018-11-18T14:55:49.-01:23"), //
|
Arguments.of("2018-11-18T14:55:49.-01:23"), //
|
||||||
Arguments.of("2018-11-18T14:55:49Z"), //
|
Arguments.of("2018-11-18T14:55:49Z"), //
|
||||||
Arguments.of("2018-11-18T14:55:49-01:23"), //
|
Arguments.of("2018-11-18T14:55:49-01:23") //
|
||||||
Arguments.of("2018-11-18 14:55:49,123") //
|
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -76,7 +75,8 @@ public class FastISODateParserTest {
|
|||||||
Arguments.of("2018-11-18T14:42:49,123+12:34", "2018-11-18T14:42:49.123+12:34"), // with comma instead of
|
Arguments.of("2018-11-18T14:42:49,123+12:34", "2018-11-18T14:42:49.123+12:34"), // with comma instead of
|
||||||
// dot
|
// dot
|
||||||
Arguments.of("2018-11-18T14:42:49.123", "2018-11-18T14:42:49.123Z"), // without timezone
|
Arguments.of("2018-11-18T14:42:49.123", "2018-11-18T14:42:49.123Z"), // without timezone
|
||||||
Arguments.of("2018-11-18T14:42:49,123", "2018-11-18T14:42:49.123Z") // with command, without timezone
|
Arguments.of("2018-11-18T14:42:49,123", "2018-11-18T14:42:49.123Z"), // with command, without timezone
|
||||||
|
Arguments.of("2018-11-18 14:42:49,123", "2018-11-18T14:42:49.123Z") // without the 'T'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user