aboutsummaryrefslogtreecommitdiffstats
path: root/test/extra/lax
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-06-09 18:21:21 -0400
committerDavid Robillard <d@drobilla.net>2024-06-09 18:21:56 -0400
commitc57e92c6eeb715f0caa6c4799a7a1e54e49fc62f (patch)
treedd1fd991014e72595378d524e4921a808e74a0d5 /test/extra/lax
parent8f94d1b38df369c9316b499bf9434cf89c825098 (diff)
downloadserd-c57e92c6eeb715f0caa6c4799a7a1e54e49fc62f.tar.gz
serd-c57e92c6eeb715f0caa6c4799a7a1e54e49fc62f.tar.bz2
serd-c57e92c6eeb715f0caa6c4799a7a1e54e49fc62f.zip
Treat out of range unicode characters as errors
Diffstat (limited to 'test/extra/lax')
-rw-r--r--test/extra/lax/manifest.ttl7
-rw-r--r--test/extra/lax/test-out-of-range-unicode.nt1
-rw-r--r--test/extra/lax/test-out-of-range-unicode.ttl1
3 files changed, 9 insertions, 0 deletions
diff --git a/test/extra/lax/manifest.ttl b/test/extra/lax/manifest.ttl
index bf51f931..f79e1984 100644
--- a/test/extra/lax/manifest.ttl
+++ b/test/extra/lax/manifest.ttl
@@ -19,6 +19,7 @@
<#test-bad-utf8-ttl>
<#test-bad-utf8-trig>
<#test-lone-list>
+ <#test-out-of-range-unicode>
) .
<#test-bad-string-nq>
@@ -98,3 +99,9 @@
mf:action <test-lone-list.ttl> ;
mf:name "test-lone-list" ;
mf:result <test-lone-list.nt> .
+
+<#test-out-of-range-unicode>
+ a rdft:TestTurtleNegativeSyntax ;
+ mf:action <test-out-of-range-unicode.ttl> ;
+ mf:name "test-out-of-range-unicode" ;
+ mf:result <test-out-of-range-unicode.nt> .
diff --git a/test/extra/lax/test-out-of-range-unicode.nt b/test/extra/lax/test-out-of-range-unicode.nt
new file mode 100644
index 00000000..5def9e31
--- /dev/null
+++ b/test/extra/lax/test-out-of-range-unicode.nt
@@ -0,0 +1 @@
+<http://example.org/thing> <http://example.org/character> "\uFFFD" .
diff --git a/test/extra/lax/test-out-of-range-unicode.ttl b/test/extra/lax/test-out-of-range-unicode.ttl
new file mode 100644
index 00000000..7e64785a
--- /dev/null
+++ b/test/extra/lax/test-out-of-range-unicode.ttl
@@ -0,0 +1 @@
+<http://example.org/thing> <http://example.org/character> "\U00110000" .