aboutsummaryrefslogtreecommitdiffstats
path: root/test/extra/decode
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-02-05 18:39:49 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit343124df71010055c2c1e6cdcadd13d23b2c013a (patch)
tree7c2de6a72021adaac89e9c4fa97e7cc5503e0657 /test/extra/decode
parent530edb265fbbed20e6d3a6fd7a36461ff83d9b46 (diff)
downloadserd-343124df71010055c2c1e6cdcadd13d23b2c013a.tar.gz
serd-343124df71010055c2c1e6cdcadd13d23b2c013a.tar.bz2
serd-343124df71010055c2c1e6cdcadd13d23b2c013a.zip
[WIP] Add support for URI hex escape decoding
Diffstat (limited to 'test/extra/decode')
-rw-r--r--test/extra/decode/extended-iri-chars-escaped.nt1
-rw-r--r--test/extra/decode/extended-iri-chars.nt1
-rw-r--r--test/extra/decode/manifest.ttl17
3 files changed, 19 insertions, 0 deletions
diff --git a/test/extra/decode/extended-iri-chars-escaped.nt b/test/extra/decode/extended-iri-chars-escaped.nt
new file mode 100644
index 00000000..4b6336bd
--- /dev/null
+++ b/test/extra/decode/extended-iri-chars-escaped.nt
@@ -0,0 +1 @@
+<http://example.org/s> <http://example.org/p> <http://example.org/verschl%C3%BCsselt%20%E2%9C%89/%01%02%03%04%05%06%07%08%09%0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%20!%22#$%25&'()*+,-./0123456789:;%3C=%3E?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[%5C]%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F> .
diff --git a/test/extra/decode/extended-iri-chars.nt b/test/extra/decode/extended-iri-chars.nt
new file mode 100644
index 00000000..f153d6b6
--- /dev/null
+++ b/test/extra/decode/extended-iri-chars.nt
@@ -0,0 +1 @@
+<http://example.org/s> <http://example.org/p> <http://example.org/verschlüsselt%20✉/%01%02%03%04%05%06%07%08%09%0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%20!%22#$%25&'()*+,-./0123456789:;%3C=%3E?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[%5C]%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F> .
diff --git a/test/extra/decode/manifest.ttl b/test/extra/decode/manifest.ttl
new file mode 100644
index 00000000..1bc8b9a8
--- /dev/null
+++ b/test/extra/decode/manifest.ttl
@@ -0,0 +1,17 @@
+@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdft: <http://www.w3.org/ns/rdftest#> .
+
+<>
+ a mf:Manifest ;
+ rdfs:comment "Serd URI decoding test cases" ;
+ mf:entries (
+ <#extended-iri-chars>
+ <#wide-characters>
+ ) .
+
+<#extended-iri-chars>
+ a rdft:TestTurtleEval ;
+ mf:action <extended-iri-chars-escaped.nt> ;
+ mf:name "extended-iri-chars" ;
+ mf:result <extended-iri-chars.nt> .