aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-03-29 08:24:20 -0400
committerDavid Robillard <d@drobilla.net>2024-03-29 08:39:51 -0400
commit14c33b2ee734bf7f44d754695689ae778261005c (patch)
tree6565147d94f85aedb5e35d26453a944324d47353
parent9facb914c72bf4d0473b49faa797cdb5c9faf68b (diff)
downloadserd-14c33b2ee734bf7f44d754695689ae778261005c.tar.gz
serd-14c33b2ee734bf7f44d754695689ae778261005c.tar.bz2
serd-14c33b2ee734bf7f44d754695689ae778261005c.zip
Add NTriples test cases for bad blank nodes and trailing garbage
-rw-r--r--test/extra/bad/bad-blank-node-label.nt1
-rw-r--r--test/extra/bad/bad-trailing-garbage.nt1
-rw-r--r--test/extra/bad/manifest.ttl12
3 files changed, 14 insertions, 0 deletions
diff --git a/test/extra/bad/bad-blank-node-label.nt b/test/extra/bad/bad-blank-node-label.nt
new file mode 100644
index 00000000..d178a623
--- /dev/null
+++ b/test/extra/bad/bad-blank-node-label.nt
@@ -0,0 +1 @@
+<http://example.org/s> <http://example.org/p> _nocolon .
diff --git a/test/extra/bad/bad-trailing-garbage.nt b/test/extra/bad/bad-trailing-garbage.nt
new file mode 100644
index 00000000..79790812
--- /dev/null
+++ b/test/extra/bad/bad-trailing-garbage.nt
@@ -0,0 +1 @@
+<http://example.org/s> <http://example.org/p> <http://example.org/o> . <http://example.org/error>
diff --git a/test/extra/bad/manifest.ttl b/test/extra/bad/manifest.ttl
index 2c985e65..6b6df540 100644
--- a/test/extra/bad/manifest.ttl
+++ b/test/extra/bad/manifest.ttl
@@ -10,6 +10,7 @@
<#bad-a-subject>
<#bad-base>
<#bad-blank>
+ <#bad-blank-node-label>
<#bad-blank-predicate>
<#bad-blank-syntax>
<#bad-bom>
@@ -118,6 +119,7 @@
<#bad-semicolon-after-subject>
<#bad-string>
<#bad-subject>
+ <#bad-trailing-garbage>
<#bad-true-predicate>
<#bad-true-subject>
<#bad-uri-escape>
@@ -147,6 +149,11 @@
mf:action <bad-blank.ttl> ;
mf:name "bad-blank" .
+<#bad-blank-node-label>
+ a rdft:TestNTriplesNegativeSyntax ;
+ mf:action <bad-blank-node-label.nt> ;
+ mf:name "bad-blank-node-label" .
+
<#bad-blank-predicate>
a rdft:TestTurtleNegativeSyntax ;
mf:action <bad-blank-predicate.ttl> ;
@@ -687,6 +694,11 @@
mf:action <bad-subject.ttl> ;
mf:name "bad-subject" .
+<#bad-trailing-garbage>
+ a rdft:TestNTriplesNegativeSyntax ;
+ mf:action <bad-trailing-garbage.nt> ;
+ mf:name "bad-trailing-garbage" .
+
<#bad-true-predicate>
a rdft:TestTurtleNegativeSyntax ;
mf:action <bad-true-predicate.ttl> ;