aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-11-24 16:40:46 -0500
committerDavid Robillard <d@drobilla.net>2022-11-24 16:40:46 -0500
commit055735f696138614d51e92f1152bb02f0cfbefe0 (patch)
tree291370b16775ba7b94bc3bebf58f8fe7f6719a45 /test
parent4846ad5212db89b9e72abee8da69ba87de65b113 (diff)
downloadserd-055735f696138614d51e92f1152bb02f0cfbefe0.tar.gz
serd-055735f696138614d51e92f1152bb02f0cfbefe0.tar.bz2
serd-055735f696138614d51e92f1152bb02f0cfbefe0.zip
Gracefully handle bad characters in Turtle datatype syntax
Diffstat (limited to 'test')
-rw-r--r--test/bad/bad-datatype-syntax.ttl1
-rw-r--r--test/bad/manifest.ttl6
2 files changed, 7 insertions, 0 deletions
diff --git a/test/bad/bad-datatype-syntax.ttl b/test/bad/bad-datatype-syntax.ttl
new file mode 100644
index 00000000..541c25d4
--- /dev/null
+++ b/test/bad/bad-datatype-syntax.ttl
@@ -0,0 +1 @@
+<http://example.org/s> <http://example.org/p> "value"^<http://example.org/t> .
diff --git a/test/bad/manifest.ttl b/test/bad/manifest.ttl
index 5f208983..0f4f1338 100644
--- a/test/bad/manifest.ttl
+++ b/test/bad/manifest.ttl
@@ -28,6 +28,7 @@
<#bad-char-in-local>
<#bad-char-in-prefix>
<#bad-char-in-uri>
+ <#bad-datatype-syntax>
<#bad-datatype>
<#bad-dot-after-subject>
<#bad-dot-in-collection>
@@ -185,6 +186,11 @@
mf:name "bad-char-in-uri" ;
mf:action <bad-char-in-uri.ttl> .
+<#bad-datatype-syntax>
+ rdf:type rdft:TestTurtleNegativeSyntax ;
+ mf:name "bad-datatype-syntax" ;
+ mf:action <bad-datatype-syntax.ttl> .
+
<#bad-datatype>
rdf:type rdft:TestTurtleNegativeSyntax ;
mf:name "bad-datatype" ;