Tests for #142
This commit is contained in:
parent
fc7ac7ab00
commit
5282110f02
|
@ -262,11 +262,13 @@ public class BaseDateTimeDtDstu2Test {
|
||||||
verifyFails("1974-A2-25");
|
verifyFails("1974-A2-25");
|
||||||
verifyFails("1974-12-A5");
|
verifyFails("1974-12-A5");
|
||||||
|
|
||||||
|
|
||||||
// Date shouldn't have a time zone
|
// Date shouldn't have a time zone
|
||||||
verifyFails("1974-12-25Z");
|
verifyFails("1974-12-25Z");
|
||||||
verifyFails("1974-12-25+10:00");
|
verifyFails("1974-12-25+10:00");
|
||||||
|
|
||||||
// Out of range
|
// Out of range
|
||||||
|
verifyFails("2015-02-30");
|
||||||
verifyFails("1974-13-25");
|
verifyFails("1974-13-25");
|
||||||
verifyFails("1974-12-32");
|
verifyFails("1974-12-32");
|
||||||
verifyFails("2015-02-29");
|
verifyFails("2015-02-29");
|
||||||
|
|
|
@ -145,6 +145,7 @@ public class BaseDateTimeTypeDstu3Test {
|
||||||
verifyFails("1974-12-25+10:00");
|
verifyFails("1974-12-25+10:00");
|
||||||
|
|
||||||
// Out of range
|
// Out of range
|
||||||
|
verifyFails("2015-02-30");
|
||||||
verifyFails("1974-13-25");
|
verifyFails("1974-13-25");
|
||||||
verifyFails("1974-12-32");
|
verifyFails("1974-12-32");
|
||||||
verifyFails("2015-02-29");
|
verifyFails("2015-02-29");
|
||||||
|
|
Loading…
Reference in New Issue