summaryrefslogtreecommitdiff
path: root/api_test/main.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-11-11 12:52:35 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-11-11 12:52:35 -0800
commitcb1cd888cce0cae20a33663d6d17ef7630c5d4d7 (patch)
tree203fed956b1e831cdbb2e149e9271ae67b0eaa0a /api_test/main.c
parent7d04065de4c793003af01647ff23132de1c9e919 (diff)
Fix entity parser (and api test) to respect length limit on numeric entities.
Diffstat (limited to 'api_test/main.c')
-rw-r--r--api_test/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/api_test/main.c b/api_test/main.c
index 83afbff..9b7ba41 100644
--- a/api_test/main.c
+++ b/api_test/main.c
@@ -837,11 +837,11 @@ static void numeric_entities(test_batch_runner *runner) {
"Valid numeric entity 0x10FFFF");
test_md_to_html(runner, "&#x110000;", "<p>" UTF8_REPL "</p>\n",
"Invalid numeric entity 0x110000");
- test_md_to_html(runner, "&#x80000000;", "<p>" UTF8_REPL "</p>\n",
+ test_md_to_html(runner, "&#x80000000;", "<p>&amp;#x80000000;</p>\n",
"Invalid numeric entity 0x80000000");
- test_md_to_html(runner, "&#xFFFFFFFF;", "<p>" UTF8_REPL "</p>\n",
+ test_md_to_html(runner, "&#xFFFFFFFF;", "<p>&amp;#xFFFFFFFF;</p>\n",
"Invalid numeric entity 0xFFFFFFFF");
- test_md_to_html(runner, "&#99999999;", "<p>" UTF8_REPL "</p>\n",
+ test_md_to_html(runner, "&#99999999;", "<p>&amp;#99999999;</p>\n",
"Invalid numeric entity 99999999");
test_md_to_html(runner, "&#;", "<p>&amp;#;</p>\n",