aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-24 22:44:52 +0000
committerDavid Robillard <d@drobilla.net>2011-12-24 22:44:52 +0000
commit15b033080ce2ebdd16fb01073bb5a5cf976527bb (patch)
tree9ad6ca420c9239ecd1f31ea04f5d0343c91fa7dc /tests
parentcc9f30fefe18284a2f05134e7fc2ecbada1722f7 (diff)
downloadserd-15b033080ce2ebdd16fb01073bb5a5cf976527bb.tar.gz
serd-15b033080ce2ebdd16fb01073bb5a5cf976527bb.tar.bz2
serd-15b033080ce2ebdd16fb01073bb5a5cf976527bb.zip
Allow digit as first character of prefixed name suffix (match latest Turtle spec).
Improve env.c test coverage. Add test case for ticket #734. git-svn-id: http://svn.drobilla.net/serd/trunk@271 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'tests')
-rw-r--r--tests/test-prefix.out2
-rw-r--r--tests/test-prefix.ttl4
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/test-prefix.out b/tests/test-prefix.out
new file mode 100644
index 00000000..9e166588
--- /dev/null
+++ b/tests/test-prefix.out
@@ -0,0 +1,2 @@
+<http://example.org/a/b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Thing> .
+<http://example.org/a/b/c> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Thing> .
diff --git a/tests/test-prefix.ttl b/tests/test-prefix.ttl
new file mode 100644
index 00000000..a1d22122
--- /dev/null
+++ b/tests/test-prefix.ttl
@@ -0,0 +1,4 @@
+@prefix eg: <http://example.org/a/> .
+
+<http://example.org/a/b> a <http://example.org/Thing> .
+<http://example.org/a/b/c> a <http://example.org/Thing> . \ No newline at end of file