From a627bf523eba114b0e2466c77bd379d17c7195c6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 9 Apr 2021 15:41:36 -0400 Subject: Write statements with invalid URI characters in lax mode --- test/lax/manifest.ttl | 7 +++++++ test/lax/test-bad-string.nt | 1 + test/lax/test-bad-string.ttl | 3 +++ test/lax/test-bad-uri.nt | 1 + 4 files changed, 12 insertions(+) create mode 100644 test/lax/test-bad-string.nt create mode 100644 test/lax/test-bad-string.ttl (limited to 'test/lax') diff --git a/test/lax/manifest.ttl b/test/lax/manifest.ttl index e3b11ff4..0cfdb776 100644 --- a/test/lax/manifest.ttl +++ b/test/lax/manifest.ttl @@ -7,10 +7,17 @@ rdf:type mf:Manifest ; rdfs:comment "Serd lax syntax test cases" ; mf:entries ( + <#test-bad-string> <#test-bad-uri> <#test-bad-utf8> ) . +<#test-bad-string> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "test-bad-string" ; + mf:action ; + mf:result . + <#test-bad-uri> rdf:type rdft:TestTurtleNegativeSyntax ; mf:name "test-bad-uri" ; diff --git a/test/lax/test-bad-string.nt b/test/lax/test-bad-string.nt new file mode 100644 index 00000000..24f80a2e --- /dev/null +++ b/test/lax/test-bad-string.nt @@ -0,0 +1 @@ + "Good" . diff --git a/test/lax/test-bad-string.ttl b/test/lax/test-bad-string.ttl new file mode 100644 index 00000000..72eb9621 --- /dev/null +++ b/test/lax/test-bad-string.ttl @@ -0,0 +1,3 @@ + "Truncated line + "Bad escape \? " . + "Good" . diff --git a/test/lax/test-bad-uri.nt b/test/lax/test-bad-uri.nt index 7458e12a..8cb00ba7 100644 --- a/test/lax/test-bad-uri.nt +++ b/test/lax/test-bad-uri.nt @@ -1,3 +1,4 @@ + . . . . -- cgit v1.2.1