forked from usnistgov/OSCAL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Repairing more bugs in character handling in Markdown and plain text,…
… with unit testing: usnistgov#452
- Loading branch information
1 parent
11758a7
commit bf43072
Showing
7 changed files
with
33 additions
and
24 deletions.
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
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
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
8 changes: 4 additions & 4 deletions
8
build/metaschema/unit-testing/char-handling/charstrings-test_okay-PASS-back.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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<examples xmlns="http://csrc.nist.gov/ns/metaschema/unit-test/datatypes-dateTime"> | ||
<charstring>Here\'s a string including punctuation \' \" \ . $</charstring> | ||
<charstring>Here\'s a string with an ampersand &</charstring> | ||
<charstring>Here's a string including punctuation ' " \ . $</charstring> | ||
<charstring>Here's a string with an ampersand &</charstring> | ||
<charstring>Less-than and greater-than, as <delimiters> ...</charstring> | ||
<charstring>The star aka asterisk \* may be magical and maybe also the tick \`</charstring> | ||
<charstring>The star aka asterisk * may be magical and maybe also the tick `</charstring> | ||
<markupline>Also, occasionally we have <a href="w3.org">links</a> and <em>other markup</em>.</markupline> | ||
<markupline>And *sometimes*, we have \*very confusing stuff\* as well.</markupline> | ||
<markupline>And <em>sometimes</em>, we have *very confusing stuff* as well.</markupline> | ||
</examples> |
6 changes: 3 additions & 3 deletions
6
build/metaschema/unit-testing/char-handling/charstrings-test_okay-PASS.json
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
|
||
{ "examples" : | ||
{ "character-strings" : | ||
[ "Here\\'s a string including punctuation \\' \\\" \\ . $", | ||
"Here\\'s a string with an ampersand &", | ||
[ "Here's a string including punctuation ' \" \\ . $", | ||
"Here's a string with an ampersand &", | ||
"Less-than and greater-than, as <delimiters> ...", | ||
"The star aka asterisk \\* may be magical and maybe also the tick \\`" ], | ||
"The star aka asterisk * may be magical and maybe also the tick `" ], | ||
"markup-lines" : | ||
[ "Also, occasionally we have [links](w3.org) and *other markup*.", | ||
"And *sometimes*, we have \\*very confusing stuff\\* as well." ] } } |
6 changes: 3 additions & 3 deletions
6
build/metaschema/unit-testing/char-handling/charstrings-test_okay-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
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