aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-04-03 09:00:26 -0400
committerDavid Robillard <d@drobilla.net>2023-04-06 07:19:10 -0400
commit35fa3c20769fc1debf44f2afd01eed382200d967 (patch)
tree4c2d24e2f48b47df2c58d681f2664d2f422ba45c
parent9e94f1efec34a7328d71eabbf5d21688683946bd (diff)
downloadserd-35fa3c20769fc1debf44f2afd01eed382200d967.tar.gz
serd-35fa3c20769fc1debf44f2afd01eed382200d967.tar.bz2
serd-35fa3c20769fc1debf44f2afd01eed382200d967.zip
Update NTriples test suite
-rw-r--r--test/w3c/NTriplesTests/manifest.ttl18
-rw-r--r--test/w3c/NTriplesTests/nt-syntax-bad-bnode-01.nt1
-rw-r--r--test/w3c/NTriplesTests/nt-syntax-bad-bnode-02.nt1
3 files changed, 18 insertions, 2 deletions
diff --git a/test/w3c/NTriplesTests/manifest.ttl b/test/w3c/NTriplesTests/manifest.ttl
index 246561cb..a90da4f7 100644
--- a/test/w3c/NTriplesTests/manifest.ttl
+++ b/test/w3c/NTriplesTests/manifest.ttl
@@ -8,7 +8,7 @@
@prefix rdft: <http://www.w3.org/ns/rdftest#> .
<> rdf:type mf:Manifest ;
- mf:name "N-Triples tests" ;
+ rdfs:label "N-Triples tests" ;
mf:entries
(
<#nt-syntax-file-01>
@@ -40,6 +40,8 @@
<#nt-syntax-bad-uri-09>
<#nt-syntax-bad-prefix-01>
<#nt-syntax-bad-base-01>
+ <#nt-syntax-bad-bnode-01>
+ <#nt-syntax-bad-bnode-02>
<#nt-syntax-bad-struct-01>
<#nt-syntax-bad-struct-02>
<#nt-syntax-bad-lang-01>
@@ -255,6 +257,18 @@
mf:action <nt-syntax-bad-base-01.nt> ;
.
+<#nt-syntax-bad-bnode-01> rdf:type rdft:TestNTriplesNegativeSyntax ;
+ mf:name "nt-syntax-bad-bnode-01" ;
+ rdfs:comment "Colon in bnode label not allowed (negative test)" ;
+ mf:action <nt-syntax-bad-bnode-01.nt> ;
+ .
+
+<#nt-syntax-bad-bnode-02> rdf:type rdft:TestNTriplesNegativeSyntax ;
+ mf:name "nt-syntax-bad-bnode-02" ;
+ rdfs:comment "Colon in bnode label not allowed (negative test)" ;
+ mf:action <nt-syntax-bad-bnode-02.nt> ;
+ .
+
<#nt-syntax-bad-struct-01> rdf:type rdft:TestNTriplesNegativeSyntax ;
mf:name "nt-syntax-bad-struct-01" ;
rdfs:comment "N-Triples does not have objectList (negative test)" ;
@@ -415,7 +429,7 @@
<#literal_with_dquote> rdf:type rdft:TestNTriplesPositiveSyntax ;
mf:name "literal_with_dquote" ;
- rdfs:comment "literal with dquote \"x\"y\"" ;
+ rdfs:comment 'literal with dquote "x\"y"' ;
rdft:approval rdft:Proposed ;
mf:action <literal_with_dquote.nt> ;
.
diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-bnode-01.nt b/test/w3c/NTriplesTests/nt-syntax-bad-bnode-01.nt
new file mode 100644
index 00000000..a776d20d
--- /dev/null
+++ b/test/w3c/NTriplesTests/nt-syntax-bad-bnode-01.nt
@@ -0,0 +1 @@
+_::a <http://example/p> <http://example/o> .
diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-bnode-02.nt b/test/w3c/NTriplesTests/nt-syntax-bad-bnode-02.nt
new file mode 100644
index 00000000..093b8700
--- /dev/null
+++ b/test/w3c/NTriplesTests/nt-syntax-bad-bnode-02.nt
@@ -0,0 +1 @@
+_:abc:def <http://example/p> <http://example/o> .