From 343124df71010055c2c1e6cdcadd13d23b2c013a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 5 Feb 2023 18:39:49 -0500 Subject: [WIP] Add support for URI hex escape decoding --- test/extra/encode/manifest.ttl | 24 ++++++++++++++++++++++++ test/extra/encode/uri-ascii.nt | 1 + test/extra/encode/uri-ascii.ttl | 2 ++ test/extra/encode/uri-utf8.nt | 1 + test/extra/encode/uri-utf8.ttl | 2 ++ 5 files changed, 30 insertions(+) create mode 100644 test/extra/encode/manifest.ttl create mode 100644 test/extra/encode/uri-ascii.nt create mode 100644 test/extra/encode/uri-ascii.ttl create mode 100644 test/extra/encode/uri-utf8.nt create mode 100644 test/extra/encode/uri-utf8.ttl (limited to 'test/extra/encode') diff --git a/test/extra/encode/manifest.ttl b/test/extra/encode/manifest.ttl new file mode 100644 index 00000000..0ad05437 --- /dev/null +++ b/test/extra/encode/manifest.ttl @@ -0,0 +1,24 @@ +@prefix mf: . +@prefix rdf: . +@prefix rdfs: . +@prefix rdft: . + +<> + a mf:Manifest ; + rdfs:comment "Serd URI encoding test cases" ; + mf:entries ( + <#uri-ascii> + <#uri-utf8> + ) . + +<#uri-ascii> + a rdft:TestTurtleEval ; + mf:action ; + mf:name "uri-ascii" ; + mf:result . + +<#uri-utf8> + a rdft:TestTurtleEval ; + mf:action ; + mf:name "uri-utf8" ; + mf:result . diff --git a/test/extra/encode/uri-ascii.nt b/test/extra/encode/uri-ascii.nt new file mode 100644 index 00000000..0abb79bd --- /dev/null +++ b/test/extra/encode/uri-ascii.nt @@ -0,0 +1 @@ + . diff --git a/test/extra/encode/uri-ascii.ttl b/test/extra/encode/uri-ascii.ttl new file mode 100644 index 00000000..df0a1182 --- /dev/null +++ b/test/extra/encode/uri-ascii.ttl @@ -0,0 +1,2 @@ + + . diff --git a/test/extra/encode/uri-utf8.nt b/test/extra/encode/uri-utf8.nt new file mode 100644 index 00000000..29f05fec --- /dev/null +++ b/test/extra/encode/uri-utf8.nt @@ -0,0 +1 @@ + . diff --git a/test/extra/encode/uri-utf8.ttl b/test/extra/encode/uri-utf8.ttl new file mode 100644 index 00000000..e5454177 --- /dev/null +++ b/test/extra/encode/uri-utf8.ttl @@ -0,0 +1,2 @@ + + . -- cgit v1.2.1