Skip to content

Update static 1.2 spec - rdf-tests 348#150

Merged
jitsedesmet merged 5 commits into
mainfrom
test/add-spec-eval-as-static
Jun 19, 2026
Merged

Update static 1.2 spec - rdf-tests 348#150
jitsedesmet merged 5 commits into
mainfrom
test/add-spec-eval-as-static

Conversation

@jitsedesmet

Copy link
Copy Markdown
Member

Implements tests changed in w3c/rdf-tests#348

jitsedesmet and others added 4 commits June 19, 2026 10:54
Replace the two-pass approach (decode UCHAR then ECHAR separately) with a
single-pass regex that handles both in one scan. The SPARQL 1.2 spec states
"the character resulting from the codepoint escape sequence is not further
interpreted", so a backslash produced by \ must not be re-processed as
an ECHAR prefix.

Remove codepoint-esc-05-bad and codepoint-esc-06-bad negative tests that
were testing the incorrect two-pass behavior. Update AST snapshots and
generated SPARQL files for codepoint-esc-05 through codepoint-esc-09.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jitsedesmet jitsedesmet marked this pull request as ready for review June 19, 2026 11:24
@jitsedesmet jitsedesmet requested a review from rubensworks June 19, 2026 11:32
Comment thread packages/rules-sparql-1-2/lib/parserUtils.ts
Comment thread packages/rules-sparql-1-2/lib/parserUtils.ts
Comment thread packages/rules-sparql-1-2/lib/sparql12HelperTypes.ts
@jitsedesmet jitsedesmet requested a review from rubensworks June 19, 2026 11:51
@jitsedesmet

Copy link
Copy Markdown
Member Author

Linking to Comunica, I confirm that the spec tests now pass in that repo.

@jitsedesmet jitsedesmet merged commit 3057be5 into main Jun 19, 2026
55 checks passed
@jitsedesmet jitsedesmet deleted the test/add-spec-eval-as-static branch June 19, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants