From 14c33b2ee734bf7f44d754695689ae778261005c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 Mar 2024 08:24:20 -0400 Subject: Add NTriples test cases for bad blank nodes and trailing garbage --- test/extra/bad/bad-blank-node-label.nt | 1 + test/extra/bad/bad-trailing-garbage.nt | 1 + test/extra/bad/manifest.ttl | 12 ++++++++++++ 3 files changed, 14 insertions(+) create mode 100644 test/extra/bad/bad-blank-node-label.nt create mode 100644 test/extra/bad/bad-trailing-garbage.nt (limited to 'test/extra/bad') 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 @@ + _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 @@ + . 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 ; mf:name "bad-blank" . +<#bad-blank-node-label> + a rdft:TestNTriplesNegativeSyntax ; + mf:action ; + mf:name "bad-blank-node-label" . + <#bad-blank-predicate> a rdft:TestTurtleNegativeSyntax ; mf:action ; @@ -687,6 +694,11 @@ mf:action ; mf:name "bad-subject" . +<#bad-trailing-garbage> + a rdft:TestNTriplesNegativeSyntax ; + mf:action ; + mf:name "bad-trailing-garbage" . + <#bad-true-predicate> a rdft:TestTurtleNegativeSyntax ; mf:action ; -- cgit v1.2.1