From 8e0270ea4d800d4f52d6c563dbb07dbb6e8cd1b7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 9 Nov 2020 12:11:13 +0100 Subject: Rename test directory --- test/lax/manifest.ttl | 25 +++++++++++++++++++++++++ test/lax/test-bad-uri.nt | 3 +++ test/lax/test-bad-uri.ttl | 4 ++++ test/lax/test-bad-utf8.nt | 6 ++++++ test/lax/test-bad-utf8.ttl | 6 ++++++ 5 files changed, 44 insertions(+) create mode 100644 test/lax/manifest.ttl create mode 100644 test/lax/test-bad-uri.nt create mode 100644 test/lax/test-bad-uri.ttl create mode 100644 test/lax/test-bad-utf8.nt create mode 100644 test/lax/test-bad-utf8.ttl (limited to 'test/lax') diff --git a/test/lax/manifest.ttl b/test/lax/manifest.ttl new file mode 100644 index 00000000..e3b11ff4 --- /dev/null +++ b/test/lax/manifest.ttl @@ -0,0 +1,25 @@ +@prefix mf: . +@prefix rdf: . +@prefix rdfs: . +@prefix rdft: . + +<> + rdf:type mf:Manifest ; + rdfs:comment "Serd lax syntax test cases" ; + mf:entries ( + <#test-bad-uri> + <#test-bad-utf8> + ) . + +<#test-bad-uri> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "test-bad-uri" ; + mf:action ; + mf:result . + +<#test-bad-utf8> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "test-bad-utf8" ; + mf:action ; + mf:result . + diff --git a/test/lax/test-bad-uri.nt b/test/lax/test-bad-uri.nt new file mode 100644 index 00000000..7458e12a --- /dev/null +++ b/test/lax/test-bad-uri.nt @@ -0,0 +1,3 @@ + . + . + . diff --git a/test/lax/test-bad-uri.ttl b/test/lax/test-bad-uri.ttl new file mode 100644 index 00000000..8f11b1d7 --- /dev/null +++ b/test/lax/test-bad-uri.ttl @@ -0,0 +1,4 @@ + . + . + . + . diff --git a/test/lax/test-bad-utf8.nt b/test/lax/test-bad-utf8.nt new file mode 100644 index 00000000..09200e9d --- /dev/null +++ b/test/lax/test-bad-utf8.nt @@ -0,0 +1,6 @@ + "Impossible bytes: \uFFFD \uFFFD" . + "2 continuation bytes: \uFFFD" . + "Missing continuation: \uFFFD" . + "Impossible bytes: \uFFFD \uFFFD" . + "2 continuation bytes: \uFFFD" . + "Missing continuation: \uFFFD" . diff --git a/test/lax/test-bad-utf8.ttl b/test/lax/test-bad-utf8.ttl new file mode 100644 index 00000000..526a171f --- /dev/null +++ b/test/lax/test-bad-utf8.ttl @@ -0,0 +1,6 @@ + "Impossible bytes: þ ÿ" . + "2 continuation bytes: €¿" . + "Missing continuation: À" . + """Impossible bytes: þ ÿ""" . + """2 continuation bytes: €¿""" . + """Missing continuation: À""" . -- cgit v1.2.1