aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-24 23:33:16 +0000
committerDavid Robillard <d@drobilla.net>2011-12-24 23:33:16 +0000
commit6f523cba5f55785e75d7b0f43e97550a4b1ee4b1 (patch)
tree19e4813cb097e08137edb1068eb009e5abd9e93c /tests
parent5218a077063c20551f7209be01aa921dcb6c2820 (diff)
downloadserd-6f523cba5f55785e75d7b0f43e97550a4b1ee4b1.tar.gz
serd-6f523cba5f55785e75d7b0f43e97550a4b1ee4b1.tar.bz2
serd-6f523cba5f55785e75d7b0f43e97550a4b1ee4b1.zip
Add tests for malformed UTF-8 input.
git-svn-id: http://svn.drobilla.net/serd/trunk@274 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'tests')
-rw-r--r--tests/bad-escape.ttl1
-rw-r--r--tests/test-bad-utf8.out2
-rw-r--r--tests/test-bad-utf8.ttl2
3 files changed, 5 insertions, 0 deletions
diff --git a/tests/bad-escape.ttl b/tests/bad-escape.ttl
new file mode 100644
index 00000000..0fd6c5bf
--- /dev/null
+++ b/tests/bad-escape.ttl
@@ -0,0 +1 @@
+<http://example.org/thing> <http://example.org/comment> "\!" .
diff --git a/tests/test-bad-utf8.out b/tests/test-bad-utf8.out
new file mode 100644
index 00000000..df2ada0d
--- /dev/null
+++ b/tests/test-bad-utf8.out
@@ -0,0 +1,2 @@
+<http://example.org/thing> <http://example.org/comment> "Impossible bytes: \uFFFD \uFFFD" .
+<http://example.org/thing> <http://example.org/comment> "2 continuation bytes: \uFFFD" .
diff --git a/tests/test-bad-utf8.ttl b/tests/test-bad-utf8.ttl
new file mode 100644
index 00000000..e3c9ae81
--- /dev/null
+++ b/tests/test-bad-utf8.ttl
@@ -0,0 +1,2 @@
+<http://example.org/thing> <http://example.org/comment> "Impossible bytes: þ ÿ" .
+<http://example.org/thing> <http://example.org/comment> "2 continuation bytes: €¿" .