diff options
Diffstat (limited to 'test/extra/lax')
-rw-r--r-- | test/extra/lax/manifest.ttl | 28 | ||||
-rw-r--r-- | test/extra/lax/test-bad-string.trig | 3 | ||||
-rw-r--r-- | test/extra/lax/test-bad-uri.trig | 8 | ||||
-rw-r--r-- | test/extra/lax/test-bad-utf8.trig | 6 | ||||
-rw-r--r-- | test/extra/lax/test-out-of-range-unicode.nt | 1 | ||||
-rw-r--r-- | test/extra/lax/test-out-of-range-unicode.ttl | 1 |
6 files changed, 47 insertions, 0 deletions
diff --git a/test/extra/lax/manifest.ttl b/test/extra/lax/manifest.ttl index b9890e14..f79e1984 100644 --- a/test/extra/lax/manifest.ttl +++ b/test/extra/lax/manifest.ttl @@ -8,14 +8,18 @@ mf:entries ( <#test-bad-string-nq> <#test-bad-string-nt> + <#test-bad-string-trig> <#test-bad-string-ttl> <#test-bad-uri-nq> <#test-bad-uri-nt> <#test-bad-uri-ttl> + <#test-bad-uri-trig> <#test-bad-utf8-nq> <#test-bad-utf8-nt> <#test-bad-utf8-ttl> + <#test-bad-utf8-trig> <#test-lone-list> + <#test-out-of-range-unicode> ) . <#test-bad-string-nq> @@ -36,6 +40,12 @@ mf:name "test-bad-string-ttl" ; mf:result <test-bad-string-out.nt> . +<#test-bad-string-trig> + a rdft:TestTrigNegativeSyntax ; + mf:action <test-bad-string.trig> ; + mf:name "test-bad-string-trig" ; + mf:result <test-bad-string-out.nt> . + <#test-bad-uri-nq> a rdft:TestNQuadsNegativeSyntax ; mf:action <test-bad-uri.nq> ; @@ -54,6 +64,12 @@ mf:name "test-bad-uri-ttl" ; mf:result <test-bad-uri-out.nt> . +<#test-bad-uri-trig> + a rdft:TestTurtleNegativeSyntax ; + mf:action <test-bad-uri.trig> ; + mf:name "test-bad-uri-trig" ; + mf:result <test-bad-uri-nq-out.nq> . + <#test-bad-utf8-nq> a rdft:TestNQuadsNegativeSyntax ; mf:action <test-bad-utf8.nq> ; @@ -72,8 +88,20 @@ mf:name "test-bad-utf8-ttl" ; mf:result <test-bad-utf8-ttl-out.nt> . +<#test-bad-utf8-trig> + a rdft:TestTurtleNegativeSyntax ; + mf:action <test-bad-utf8.trig> ; + mf:name "test-bad-utf8-trig" ; + mf:result <test-bad-utf8-ttl-out.nt> . + <#test-lone-list> a rdft:TestTurtleNegativeSyntax ; mf:action <test-lone-list.ttl> ; mf:name "test-lone-list" ; mf:result <test-lone-list.nt> . + +<#test-out-of-range-unicode> + a rdft:TestTurtleNegativeSyntax ; + mf:action <test-out-of-range-unicode.ttl> ; + mf:name "test-out-of-range-unicode" ; + mf:result <test-out-of-range-unicode.nt> . diff --git a/test/extra/lax/test-bad-string.trig b/test/extra/lax/test-bad-string.trig new file mode 100644 index 00000000..72eb9621 --- /dev/null +++ b/test/extra/lax/test-bad-string.trig @@ -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" . diff --git a/test/extra/lax/test-bad-uri.trig b/test/extra/lax/test-bad-uri.trig new file mode 100644 index 00000000..ba852fef --- /dev/null +++ b/test/extra/lax/test-bad-uri.trig @@ -0,0 +1,8 @@ +<http://example.org/ÿÿbadg1> { + <http://example.org/s> <http://example.org/p> <http://example.org/goodo1> +} + +<http://example.org/s> + <http://example.org/p> <http://example.org/ bado1> ; + <http://example.org/p> <http://example.org/ÿÿbado2> ; + <http://example.org/p> <http://example.org/goodo2> . diff --git a/test/extra/lax/test-bad-utf8.trig b/test/extra/lax/test-bad-utf8.trig new file mode 100644 index 00000000..0e177366 --- /dev/null +++ b/test/extra/lax/test-bad-utf8.trig @@ -0,0 +1,6 @@ +<http://example.org/s> <http://example.org/p> "Impossible bytes: þ ÿ" . +<http://example.org/s> <http://example.org/p> "2 continuation bytes: €¿" . +<http://example.org/s> <http://example.org/p> "Missing continuation: À" . +<http://example.org/s> <http://example.org/p> """Impossible bytes: þ ÿ""" . +<http://example.org/s> <http://example.org/p> """2 continuation bytes: €¿""" . +<http://example.org/s> <http://example.org/p> """Missing continuation: À""" . diff --git a/test/extra/lax/test-out-of-range-unicode.nt b/test/extra/lax/test-out-of-range-unicode.nt new file mode 100644 index 00000000..5def9e31 --- /dev/null +++ b/test/extra/lax/test-out-of-range-unicode.nt @@ -0,0 +1 @@ +<http://example.org/thing> <http://example.org/character> "\uFFFD" . diff --git a/test/extra/lax/test-out-of-range-unicode.ttl b/test/extra/lax/test-out-of-range-unicode.ttl new file mode 100644 index 00000000..7e64785a --- /dev/null +++ b/test/extra/lax/test-out-of-range-unicode.ttl @@ -0,0 +1 @@ +<http://example.org/thing> <http://example.org/character> "\U00110000" . |