3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-18 14:15:44 +01:00

Answer stability round 1: 1 🔴, 2 🟡 (0 misread); read escaped keys through each reader, pin the longest name

This commit is contained in:
2026-11-09 08:07:26 +01:00
committed by Lillem4n
parent f541918bcb
commit 87e5f0dca1
2 changed files with 27 additions and 30 deletions
@@ -14,6 +14,7 @@ test('every named reference parts into one name and one value', () => {
test('decodes a reference to the characters HTML5 gives its name', () => {
assert.deepEqual(readEntityReference('⁡', 0), { length: 15, text: '⁡' })
assert.deepEqual(readEntityReference('&CounterClockwiseContourIntegral;', 0), { length: 33, text: '\u2233' })
assert.deepEqual(readEntityReference('
', 0), { length: 9, text: '\n' })
assert.deepEqual(readEntityReference('	', 0), { length: 5, text: '\t' })
assert.deepEqual(readEntityReference('  ', 0), { length: 12, text: '  ' })