From 5cbc514d15b5f4ce390b7fad5d17091431a38d9e Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 28 Feb 2021 14:57:27 +0100 Subject: Fix small mistakes in entity test generator --- entity.js | 6 +++--- tests/allentity.html | 30 +++++++++++++++--------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/entity.js b/entity.js index 69ca9be..98e884c 100644 --- a/entity.js +++ b/entity.js @@ -1,4 +1,4 @@ -//Usage: qjs --std entitytest.js [test/tab] > outfile +//Usage: qjs --std entity.js [test/tab] > outfile const a = getEntities(); @@ -39,7 +39,7 @@ function gentestitem(b, c, d) { b + "" + "" + - c.characters + + c.characters.replace('&', '&').replace('<', '<').replace('>', '>') + ""); console.log(" "); } @@ -47,7 +47,7 @@ function gentestitem(b, c, d) { function gentest() { console.log(""); console.log(""); - console.log(" "); console.log(""); console.log(""); console.log(" "); diff --git a/tests/allentity.html b/tests/allentity.html index 27f2f0b..9b5457c 100644 --- a/tests/allentity.html +++ b/tests/allentity.html @@ -1,6 +1,6 @@ -
@@ -11,7 +11,7 @@ - + @@ -467,7 +467,7 @@ - + @@ -686,7 +686,7 @@ - + @@ -1791,7 +1791,7 @@ - + @@ -3147,7 +3147,7 @@ - + @@ -3876,7 +3876,7 @@ - + @@ -6109,7 +6109,7 @@ - + @@ -6151,7 +6151,7 @@ - + @@ -6166,7 +6166,7 @@ - + @@ -6229,7 +6229,7 @@ - + @@ -6289,7 +6289,7 @@ - + @@ -6313,7 +6313,7 @@ - + @@ -6644,13 +6644,13 @@ - + - + -- cgit v1.2.3
&AElig;0xC6ÆÆÆ
&AMP;0x26&&&&AMP;0x26&&&
&Aacute;0xC1ÁÁÁ&GJcy;0x403ЃЃЃ
&GT;0x3E>>>&GT;0x3E>>>
&Gamma;0x393ΓΓΓ&LJcy;0x409ЉЉЉ
&LT;0x3C<<<&LT;0x3C<<<
&Lacute;0x139ĹĹĹ&amalg;0x2A3F⨿⨿⨿
&amp;0x26&&&&amp;0x26&&&
&and;0x2227&gsiml;0x2A90
&gt;0x3E>>>&gt;0x3E>>>
&gtcc;0x2AA7&lstrok;0x142łłł
&lt;0x3C<<<&lt;0x3C<<<
&ltcc;0x2AA6&AElig0xC6ÆÆÆ
&AMP0x26&&&&AMP0x26&&&
&Aacute0xC1ÁÁÁ&Euml0xCBËËË
&GT0x3E>>>&GT0x3E>>>
&Iacute0xCDÍÍÍ&Iuml0xCFÏÏÏ
&LT0x3C<<<&LT0x3C<<<
&Ntilde0xD1ÑÑÑ&agrave0xE0ààà
&amp0x26&&&&amp0x26&&&
&aring0xE5ååå&frac340xBE¾¾¾
&gt0x3E>>>&gt0x3E>>>
&iacute0xEDííí&laquo0xAB«««
&lt0x3C<<<&lt0x3C<<<
&macr0xAF¯¯¯&nvge;0x22650x20D2≥⃒≥⃒≥⃒
&nvgt;0x3E0x20D2>⃒>⃒>⃒&nvgt;0x3E0x20D2>⃒>⃒>⃒
&nvle;0x22640x20D2≤⃒≤⃒≤⃒
&nvlt;0x3C0x20D2<⃒<⃒<⃒&nvlt;0x3C0x20D2<⃒<⃒<⃒
&nvltrie;0x22B40x20D2⊴⃒⊴⃒⊴⃒