diff options
author | David Robillard <d@drobilla.net> | 2018-11-25 16:12:23 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-11-25 22:12:48 +0100 |
commit | 61f44d803f7b197c83547927ef86329d9a13c5d2 (patch) | |
tree | 46204e933b723af524caae17f1a8d7d68824818b /tests/lax | |
parent | 962461099bbfe8ee5a2f0de66e74567b8f58e4b7 (diff) | |
download | serd-61f44d803f7b197c83547927ef86329d9a13c5d2.tar.gz serd-61f44d803f7b197c83547927ef86329d9a13c5d2.tar.bz2 serd-61f44d803f7b197c83547927ef86329d9a13c5d2.zip |
Add separate test suite for lax syntax tests
Diffstat (limited to 'tests/lax')
-rw-r--r-- | tests/lax/manifest.ttl | 18 | ||||
-rw-r--r-- | tests/lax/test-bad-utf8.nt | 3 | ||||
-rw-r--r-- | tests/lax/test-bad-utf8.ttl | 3 |
3 files changed, 24 insertions, 0 deletions
diff --git a/tests/lax/manifest.ttl b/tests/lax/manifest.ttl new file mode 100644 index 00000000..533dbe70 --- /dev/null +++ b/tests/lax/manifest.ttl @@ -0,0 +1,18 @@ +@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#> . + +<> + rdf:type mf:Manifest ; + rdfs:comment "Serd lax syntax test cases" ; + mf:entries ( + <#test-bad-utf8> + ) . + +<#test-bad-utf8> + rdf:type rdft:TestTurtleEval ; + mf:name "test-bad-utf8" ; + mf:action <test-bad-utf8.ttl> ; + mf:result <test-bad-utf8.nt> . + diff --git a/tests/lax/test-bad-utf8.nt b/tests/lax/test-bad-utf8.nt new file mode 100644 index 00000000..6d73993d --- /dev/null +++ b/tests/lax/test-bad-utf8.nt @@ -0,0 +1,3 @@ +<http://example.org/thing> <http://example.org/comment> "Impossible bytes: \uFFFD \uFFFD" . +<http://example.org/thing> <http://example.org/comment> "2 continuation bytes: \uFFFD" . +<http://example.org/thing> <http://example.org/comment> "Missing continuation: \uFFFD" . diff --git a/tests/lax/test-bad-utf8.ttl b/tests/lax/test-bad-utf8.ttl new file mode 100644 index 00000000..2c105f5b --- /dev/null +++ b/tests/lax/test-bad-utf8.ttl @@ -0,0 +1,3 @@ +<http://example.org/thing> <http://example.org/comment> "Impossible bytes: þ ÿ" . +<http://example.org/thing> <http://example.org/comment> "2 continuation bytes: €¿" . +<http://example.org/thing> <http://example.org/comment> "Missing continuation: À" . |