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:
@@ -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('∳', 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: ' ' })
|
||||
|
||||
Reference in New Issue
Block a user