aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-27 19:21:50 +0100
committerDavid Robillard <d@drobilla.net>2019-10-27 22:40:34 +0100
commit8f7782ddaae00a88c6dc4cef23d2dc419763a286 (patch)
treecf89536fe87c68bfb84971587e55f5d7dd874f56 /tests
parentf0c5278f57b1ba231568f8b8fd6ff355b9622a09 (diff)
downloadserd-8f7782ddaae00a88c6dc4cef23d2dc419763a286.tar.gz
serd-8f7782ddaae00a88c6dc4cef23d2dc419763a286.tar.bz2
serd-8f7782ddaae00a88c6dc4cef23d2dc419763a286.zip
Add test case for base URI with no path
Diffstat (limited to 'tests')
-rw-r--r--tests/good/manifest.ttl7
-rw-r--r--tests/good/test-base-nopath.nt1
-rw-r--r--tests/good/test-base-nopath.ttl3
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/good/manifest.ttl b/tests/good/manifest.ttl
index 9dccde7b..1a482f2d 100644
--- a/tests/good/manifest.ttl
+++ b/tests/good/manifest.ttl
@@ -18,6 +18,7 @@
<#test-30>
<#test-a-without-whitespace>
<#test-backspace>
+ <#test-base-nopath>
<#test-base-query>
<#test-blank-cont>
<#test-blank-in-list>
@@ -108,6 +109,12 @@
mf:action <test-backspace.ttl> ;
mf:result <test-backspace.nt> .
+<#test-base-nopath>
+ rdf:type rdft:TestTurtleEval ;
+ mf:name "test-base-nopath" ;
+ mf:action <test-base-nopath.ttl> ;
+ mf:result <test-base-nopath.nt> .
+
<#test-base-query>
rdf:type rdft:TestTurtleEval ;
mf:name "test-base-query" ;
diff --git a/tests/good/test-base-nopath.nt b/tests/good/test-base-nopath.nt
new file mode 100644
index 00000000..8628a30b
--- /dev/null
+++ b/tests/good/test-base-nopath.nt
@@ -0,0 +1 @@
+<http://example.org/s> <http://example.org/p> <http://example.org/o> .
diff --git a/tests/good/test-base-nopath.ttl b/tests/good/test-base-nopath.ttl
new file mode 100644
index 00000000..8735936a
--- /dev/null
+++ b/tests/good/test-base-nopath.ttl
@@ -0,0 +1,3 @@
+@base <http://example.org> .
+
+<s> <p> <o> .