From 06ae14c8997200bbb3d4dbf0a83e1857d1f79895 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 Apr 2023 09:00:06 -0400 Subject: Test full URI preservation separately --- test/full/README.md | 5 +++++ test/full/full-uris.ttl | 7 +++++++ test/full/manifest.ttl | 17 +++++++++++++++++ test/meson.build | 4 ++++ 4 files changed, 33 insertions(+) create mode 100644 test/full/README.md create mode 100644 test/full/full-uris.ttl create mode 100644 test/full/manifest.ttl (limited to 'test') 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: . + + + 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: . +@prefix rdfs: . +@prefix rdft: . +@prefix serd: . + +<> + a mf:Manifest ; + rdfs:comment "Serd full URI test suite" ; + mf:entries ( + <#full-uris> + ) . + +<#full-uris> + a rdft:TestTurtleEval ; + mf:action ; + mf:name "full-uris" ; + mf:result . 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/', -- cgit v1.2.1