aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bad
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-09-23 15:39:50 +0200
committerDavid Robillard <d@drobilla.net>2017-09-23 15:59:23 +0200
commit65f7c3f192622ad603e1e7b3af1a57b813586334 (patch)
treeac89d88fe9b82919ff01ec6225e1ee699650b0a1 /tests/bad
parent45c7e97d70720d09653e421c870f607f8a67e747 (diff)
downloadserd-65f7c3f192622ad603e1e7b3af1a57b813586334.tar.gz
serd-65f7c3f192622ad603e1e7b3af1a57b813586334.tar.bz2
serd-65f7c3f192622ad603e1e7b3af1a57b813586334.zip
Add missing tests for invalid characters in names
Diffstat (limited to 'tests/bad')
-rw-r--r--tests/bad/bad-char-in-local.ttl2
-rw-r--r--tests/bad/invalid-char-in-local.ttl3
-rw-r--r--tests/bad/invalid-char-in-prefix.ttl1
3 files changed, 5 insertions, 1 deletions
diff --git a/tests/bad/bad-char-in-local.ttl b/tests/bad/bad-char-in-local.ttl
index 6ad4a1ca..973cc0a2 100644
--- a/tests/bad/bad-char-in-local.ttl
+++ b/tests/bad/bad-char-in-local.ttl
@@ -1,3 +1,3 @@
@prefix eg: <http://example.org/> .
-eg:bad† <http://example.org/p> <http://example.org/o> .
+eg:†bad <http://example.org/p> <http://example.org/o> .
diff --git a/tests/bad/invalid-char-in-local.ttl b/tests/bad/invalid-char-in-local.ttl
new file mode 100644
index 00000000..520c2404
--- /dev/null
+++ b/tests/bad/invalid-char-in-local.ttl
@@ -0,0 +1,3 @@
+@prefix eg: <http://example.org/> .
+
+eg:¿invalid <http://example.org/p> <http://example.org/o> .
diff --git a/tests/bad/invalid-char-in-prefix.ttl b/tests/bad/invalid-char-in-prefix.ttl
new file mode 100644
index 00000000..79547803
--- /dev/null
+++ b/tests/bad/invalid-char-in-prefix.ttl
@@ -0,0 +1 @@
+invalid¿:s <http://example.org/p> <http://example.org/o> .