diff options
author | David Robillard <d@drobilla.net> | 2017-06-29 12:21:09 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-06-29 12:21:09 -0400 |
commit | 195e4bcff3c4dfd3fe8bbf0df57d53ce89ca99e8 (patch) | |
tree | 952b067c7ace8afb1f78cb51ac032d18565c94a8 /tests | |
parent | 21211d73053d0a66a1da601472c68598cfc53595 (diff) | |
download | serd-195e4bcff3c4dfd3fe8bbf0df57d53ce89ca99e8.tar.gz serd-195e4bcff3c4dfd3fe8bbf0df57d53ce89ca99e8.tar.bz2 serd-195e4bcff3c4dfd3fe8bbf0df57d53ce89ca99e8.zip |
Fix strict parsing of abolute URI schemes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bad/bad-missing-uri-scheme.nt | 1 | ||||
-rw-r--r-- | tests/bad/bad-uri-scheme-start.nt | 1 | ||||
-rw-r--r-- | tests/bad/bad-uri-scheme.nt | 1 | ||||
-rw-r--r-- | tests/bad/bad-uri-truncated.nt | 1 | ||||
-rw-r--r-- | tests/good/test-uri.nt | 3 | ||||
-rw-r--r-- | tests/good/test-uri.ttl | 3 |
6 files changed, 10 insertions, 0 deletions
diff --git a/tests/bad/bad-missing-uri-scheme.nt b/tests/bad/bad-missing-uri-scheme.nt new file mode 100644 index 00000000..5d7bc724 --- /dev/null +++ b/tests/bad/bad-missing-uri-scheme.nt @@ -0,0 +1 @@ +<foo> <bar> <baz> . diff --git a/tests/bad/bad-uri-scheme-start.nt b/tests/bad/bad-uri-scheme-start.nt new file mode 100644 index 00000000..cd3fd70f --- /dev/null +++ b/tests/bad/bad-uri-scheme-start.nt @@ -0,0 +1 @@ +<2http://example.org/s> <http://example.org/p> <http://example.org/o> . diff --git a/tests/bad/bad-uri-scheme.nt b/tests/bad/bad-uri-scheme.nt new file mode 100644 index 00000000..1329edcd --- /dev/null +++ b/tests/bad/bad-uri-scheme.nt @@ -0,0 +1 @@ +<b@d://example.org/s> <http://example.org/p> <http://example.org/o> . diff --git a/tests/bad/bad-uri-truncated.nt b/tests/bad/bad-uri-truncated.nt new file mode 100644 index 00000000..22d29e4b --- /dev/null +++ b/tests/bad/bad-uri-truncated.nt @@ -0,0 +1 @@ +<foo
\ No newline at end of file diff --git a/tests/good/test-uri.nt b/tests/good/test-uri.nt index 6c56f594..1744963c 100644 --- a/tests/good/test-uri.nt +++ b/tests/good/test-uri.nt @@ -41,5 +41,8 @@ <http://a/b/c/d;p?aquery> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/d;p?aquery> . <http://a/b/c/d;p?q#afragment> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/d;p?q#afragment> . <http://a/> <http://www.w3.org/2002/07/owl#sameAs> <http://a/> . +<view-source://foo> <http://www.w3.org/2002/07/owl#sameAs> <view-source://foo> . +<coap+tcp://foo> <http://www.w3.org/2002/07/owl#sameAs> <coap+tcp://foo> . +<osc.udp://foo> <http://www.w3.org/2002/07/owl#sameAs> <osc.udp://foo> . <http://B/foo> <http://www.w3.org/2002/07/owl#sameAs> <http://B/foo> . <http://C/bar> <http://www.w3.org/2002/07/owl#sameAs> <http://C/bar> . diff --git a/tests/good/test-uri.ttl b/tests/good/test-uri.ttl index cf43a38b..b6a8d967 100644 --- a/tests/good/test-uri.ttl +++ b/tests/good/test-uri.ttl @@ -58,6 +58,9 @@ <?aquery> owl:sameAs <http://a/b/c/d;p?aquery> . <#afragment> owl:sameAs <http://a/b/c/d;p?q#afragment> . <../../../../../../> owl:sameAs <http://a/> . +<view-source://foo> owl:sameAs <view-source://foo> . +<coap+tcp://foo> owl:sameAs <coap+tcp://foo> . +<osc.udp://foo> owl:sameAs <osc.udp://foo> . @base <http://B?bquery> . |