diff options
author | David Robillard <d@drobilla.net> | 2023-02-05 18:39:49 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 343124df71010055c2c1e6cdcadd13d23b2c013a (patch) | |
tree | 7c2de6a72021adaac89e9c4fa97e7cc5503e0657 /test/extra/encode | |
parent | 530edb265fbbed20e6d3a6fd7a36461ff83d9b46 (diff) | |
download | serd-343124df71010055c2c1e6cdcadd13d23b2c013a.tar.gz serd-343124df71010055c2c1e6cdcadd13d23b2c013a.tar.bz2 serd-343124df71010055c2c1e6cdcadd13d23b2c013a.zip |
[WIP] Add support for URI hex escape decoding
Diffstat (limited to 'test/extra/encode')
-rw-r--r-- | test/extra/encode/manifest.ttl | 24 | ||||
-rw-r--r-- | test/extra/encode/uri-ascii.nt | 1 | ||||
-rw-r--r-- | test/extra/encode/uri-ascii.ttl | 2 | ||||
-rw-r--r-- | test/extra/encode/uri-utf8.nt | 1 | ||||
-rw-r--r-- | test/extra/encode/uri-utf8.ttl | 2 |
5 files changed, 30 insertions, 0 deletions
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: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> . +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@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 encoding test cases" ; + mf:entries ( + <#uri-ascii> + <#uri-utf8> + ) . + +<#uri-ascii> + a rdft:TestTurtleEval ; + mf:action <uri-ascii.ttl> ; + mf:name "uri-ascii" ; + mf:result <uri-ascii.nt> . + +<#uri-utf8> + a rdft:TestTurtleEval ; + mf:action <uri-utf8.ttl> ; + mf:name "uri-utf8" ; + mf:result <uri-utf8.nt> . 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 @@ +<http://example.org/eg#s> <http://example.org/eg#p> <http://example.org/scheme:%01%02%03%04%05%06%07%08%0B%0C%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/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 @@ +<http://example.org/eg#s> + <http://example.org/eg#p> <http://example.org/scheme:\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u000B\u000C\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F%20!\u0022#$%25&'()*+,-./0123456789:/%3C=%3E?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\u005C]\u005E_\u0060abcdefghijklmnopqrstuvwxyz\u007B\u007C\u007D~\u007F> . 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 @@ +<http://example.org/eg#s> <http://example.org/eg#p> <https://en.wiktionary.org/wiki/Ῥόδος> . 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 @@ +<http://example.org/eg#s> + <http://example.org/eg#p> <https://en.wiktionary.org/wiki/\u1FEC\u03CC\u03B4\u03BF\u03C2> . |