avancement planning

This commit is contained in:
2026-05-26 11:58:39 +02:00
parent 619a2b240a
commit 150b97cd2e
4892 changed files with 99214 additions and 429382 deletions
+9
View File
@@ -106,3 +106,12 @@ test('WSS Equal', (t) => {
runTest(t, suite)
t.end()
})
test('URI Equals tolerates malformed fragments', (t) => {
t.equal(
fastURI.equal('http://example.com/#%E0%A4A', 'http://example.com/#%E0%A4A'),
true,
'malformed fragment does not throw during equality checks'
)
t.end()
})
+5
View File
@@ -150,6 +150,11 @@ test('URI parse', (t) => {
t.equal(components.query, undefined, 'query')
t.equal(components.fragment, '%0D', 'fragment')
// malformed percent-encoded fragment must not throw
components = fastURI.parse('http://example.com/#%E0%A4A')
t.equal(components.error, 'URI malformed', 'malformed fragment errors')
t.equal(components.fragment, '%E0%A4A', 'malformed fragment is preserved')
// all
components = fastURI.parse('uri://user:pass@example.com:123/one/two.three?q1=a1&q2=a2#body')
t.equal(components.error, undefined, 'all errors')
+9
View File
@@ -76,3 +76,12 @@ test('URN Resolving', (t) => {
t.equal(fastURI.resolve('urn:some:other:prop', 'urn:some:ip:prop'), 'urn:some:ip:prop', 'urn:some:ip:prop')
t.end()
})
test('URI Resolving tolerates malformed fragments', (t) => {
t.equal(
fastURI.resolve('http://base.com/', 'http://example.com/#%E0%A4A'),
'http://example.com/#%E0%A4A',
'malformed fragment does not throw during resolve'
)
t.end()
})