aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-12-09 17:31:46 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commit0611f1446c37915708ce0ea337c9e84d4cbc3be4 (patch)
treedcf34d085f8cdbe41ac1f18848619caa9c4d8059 /test
parentd22653dfe356e3da1354cdb0f7915e29c4a33e3b (diff)
downloadserd-0611f1446c37915708ce0ea337c9e84d4cbc3be4.tar.gz
serd-0611f1446c37915708ce0ea337c9e84d4cbc3be4.tar.bz2
serd-0611f1446c37915708ce0ea337c9e84d4cbc3be4.zip
Factor out NQuads reader
Diffstat (limited to 'test')
-rw-r--r--test/extra/lax/manifest.ttl7
-rw-r--r--test/extra/lax/test-bad-string.nq3
2 files changed, 10 insertions, 0 deletions
diff --git a/test/extra/lax/manifest.ttl b/test/extra/lax/manifest.ttl
index c68f0176..9291b7b3 100644
--- a/test/extra/lax/manifest.ttl
+++ b/test/extra/lax/manifest.ttl
@@ -6,6 +6,7 @@
a mf:Manifest ;
rdfs:comment "Serd lax parsing test suite" ;
mf:entries (
+ <#test-bad-string-nq>
<#test-bad-string-nt>
<#test-bad-string-ttl>
<#test-bad-uri-nq>
@@ -18,6 +19,12 @@
<#test-out-of-range-unicode>
) .
+<#test-bad-string-nq>
+ a rdft:TestNQuadsNegativeSyntax ;
+ mf:action <test-bad-string.nq> ;
+ mf:name "test-bad-string-nq" ;
+ mf:result <test-bad-string-out.nq> .
+
<#test-bad-string-nt>
a rdft:TestNTriplesNegativeSyntax ;
mf:action <test-bad-string.nt> ;
diff --git a/test/extra/lax/test-bad-string.nq b/test/extra/lax/test-bad-string.nq
new file mode 100644
index 00000000..72eb9621
--- /dev/null
+++ b/test/extra/lax/test-bad-string.nq
@@ -0,0 +1,3 @@
+<http://example.org/s1> <http://example.org/p1> "Truncated line
+<http://example.org/s1> <http://example.org/p1> "Bad escape \? " .
+<http://example.org/s1> <http://example.org/p2> "Good" .