aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.reuse/dep52
-rw-r--r--test/full/README.md5
-rw-r--r--test/full/full-uris.ttl7
-rw-r--r--test/full/manifest.ttl17
-rw-r--r--test/meson.build4
5 files changed, 34 insertions, 1 deletions
diff --git a/.reuse/dep5 b/.reuse/dep5
index e404aabb..ecd40484 100644
--- a/.reuse/dep5
+++ b/.reuse/dep5
@@ -8,7 +8,7 @@ Copyright: 2010 World Wide Web Consortium, (MIT, ERCIM, Keio, Beihang) and other
Comment: Standard test suites from the W3C (only required for testing)
License: BSD-3-Clause
-Files: test/bad/* test/good/* test/lax/* test/qualify/* test/root/* test/prefix/* test/pretty/*
+Files: test/bad/* test/full/* test/good/* test/lax/* test/qualify/* test/root/* test/prefix/* test/pretty/*
Copyright: 2011-2023 David Robillard <d@drobilla.net>
Comment: Extra tests for serd (potential contributions to the W3C suites)
License: BSD-3-Clause OR ISC
diff --git a/test/full/README.md b/test/full/README.md
new file mode 100644
index 00000000..5cadb1b1
--- /dev/null
+++ b/test/full/README.md
@@ -0,0 +1,5 @@
+Full Test Suite
+=================
+
+This simple suite tests preservation of full URIs in the input (avoiding prefix
+qualification).
diff --git a/test/full/full-uris.ttl b/test/full/full-uris.ttl
new file mode 100644
index 00000000..cfb048df
--- /dev/null
+++ b/test/full/full-uris.ttl
@@ -0,0 +1,7 @@
+@prefix eg: <http://example.org/> .
+
+<http://example.org/s1>
+ eg:prefixed false .
+
+eg:s2
+ eg:prefixed true .
diff --git a/test/full/manifest.ttl b/test/full/manifest.ttl
new file mode 100644
index 00000000..a7cfac4a
--- /dev/null
+++ b/test/full/manifest.ttl
@@ -0,0 +1,17 @@
+@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdft: <http://www.w3.org/ns/rdftest#> .
+@prefix serd: <http://drobilla.net/ns/serd#> .
+
+<>
+ a mf:Manifest ;
+ rdfs:comment "Serd full URI test suite" ;
+ mf:entries (
+ <#full-uris>
+ ) .
+
+<#full-uris>
+ a rdft:TestTurtleEval ;
+ mf:action <full-uris.ttl> ;
+ mf:name "full-uris" ;
+ mf:result <full-uris.ttl> .
diff --git a/test/meson.build b/test/meson.build
index f5282672..8f8e9e20 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -195,6 +195,10 @@ ns_serdtest = 'http://drobilla.net/sw/serd/test/'
ns_w3 = 'http://www.w3.org/2013/'
test_suites = {
+ 'full': [
+ files('full/manifest.ttl'), ns_serdtest + 'full/',
+ '--', '-f',
+ ],
'lax.lax': [
'--lax',
files('lax/manifest.ttl'), ns_serdtest + 'lax/',