forked from usnistgov/metaschema
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding tests from Issue usnistgov#224
- Loading branch information
1 parent
627081c
commit beb41e2
Showing
4 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
test-suite/schema-generation/dates-times/datatypes-datetime_test_working_FAIL.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<parent xmlns="http://csrc.nist.gov/ns/metaschema/unit-test/datatypes-dateTime" | ||
flag-datetime="2022-08-29T16:00:00-04:00"> | ||
<!-- regex working set here: https://regex101.com/r/HIuUPe/1 --> | ||
<field-datetime>2022-07-29</field-datetime><!-- just a date --> | ||
<field-datetime>2022-11-30</field-datetime><!-- just a date --> | ||
<field-datetime>2022-11-30T21:29:17.01234567890000Z</field-datetime><!-- trailing zeros --> | ||
<field-datetime>2022-11-30T21:29:17.01234567890000-04:00</field-datetime><!-- trailing zeros --> | ||
<field-datetime>2022-11-30T21:29:17.01234567890000-99:99</field-datetime><!-- trailing zeros --> | ||
<field-datetime>2022-06-15T21:29:17.84+12:46</field-datetime><!-- wrong offset --> | ||
<field-datetime>2022-06-15T21:29:17.84+14:99</field-datetime><!-- wrong offset --> | ||
</parent> |
21 changes: 21 additions & 0 deletions
21
test-suite/schema-generation/dates-times/datatypes-datetime_test_working_PASS.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<parent xmlns="http://csrc.nist.gov/ns/metaschema/unit-test/datatypes-dateTime" | ||
flag-datetime="2022-08-29T16:00:00-04:00"> | ||
<!-- regex working set here: https://regex101.com/r/HIuUPe/1 --> | ||
<field-datetime>2022-07-29T13:25:15Z</field-datetime> | ||
<field-datetime>2022-07-29T13:25:15.39Z</field-datetime> | ||
<field-datetime>2022-07-29T13:25:15-04:00</field-datetime> | ||
<field-datetime>2022-07-29T13:25:15.59-04:00</field-datetime> | ||
<field-datetime>2022-11-30T21:29:17Z</field-datetime> | ||
<field-datetime>2022-11-30T21:29:17.84Z</field-datetime> | ||
<field-datetime>2022-11-30T21:29:17-04:00</field-datetime> | ||
<field-datetime>2022-11-30T21:29:17.84-04:00</field-datetime> | ||
<field-datetime>2022-11-30T21:29:17.84-04:00</field-datetime> | ||
<field-datetime>2022-06-15T21:29:17Z</field-datetime> | ||
<field-datetime>2022-06-15T21:29:17.84Z</field-datetime> | ||
<field-datetime>2022-06-15T21:29:17+04:00</field-datetime> | ||
<field-datetime>2022-06-15T21:29:17.84+04:00</field-datetime> | ||
<field-datetime>2022-06-15T21:29:17.84+12:45</field-datetime> | ||
<field-datetime>2022-06-12T21:29:17.84-12:00</field-datetime> | ||
<field-datetime>2022-06-15T21:29:17.84+14:00</field-datetime> | ||
</parent> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Worked Examples - Metaschema | ||
|
||
Current status: **some updates needed** | ||
|
||
Anthology example is working - shows 'plausible' use cases for a range of different metaschema modeling features. | ||
|
||
'Everything' metaschema has not been updated and needs refreshing. | ||
|
||
## TODO | ||
|
||
test | ||
schema validations | ||
M4 and oscal-cli schemas | ||
round tripping | ||
unit test any repairs? | ||
|
||
review ../schema-generation/ | ||
|
||
See work in `../schema-generation/json-value-key` and `group-as` |