aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-02-25 17:59:49 -0500
committerDavid Robillard <d@drobilla.net>2025-03-16 20:22:36 -0400
commit365397d3a1dd95aa7bfdc8d70983c390aa309d17 (patch)
tree7dc31ff101b807140a29a43d0e733bb0287b03b4 /test
parente0c3ff08acbc25040e73838770435e1d2a89265e (diff)
downloadserd-365397d3a1dd95aa7bfdc8d70983c390aa309d17.tar.gz
serd-365397d3a1dd95aa7bfdc8d70983c390aa309d17.tar.bz2
serd-365397d3a1dd95aa7bfdc8d70983c390aa309d17.zip
Fix reading prefix names that start with "true." or "false."
Diffstat (limited to 'test')
-rw-r--r--test/extra/good/manifest.ttl7
-rw-r--r--test/extra/good/test-boolish-prefix.nt2
-rw-r--r--test/extra/good/test-boolish-prefix.ttl5
3 files changed, 14 insertions, 0 deletions
diff --git a/test/extra/good/manifest.ttl b/test/extra/good/manifest.ttl
index 2ac0ba59..2e3a64af 100644
--- a/test/extra/good/manifest.ttl
+++ b/test/extra/good/manifest.ttl
@@ -16,6 +16,7 @@
<#test-blank-node-statement>
<#test-blankdot>
<#test-bom>
+ <#test-boolish-prefix>
<#test-changing-base>
<#test-comment-whitespace>
<#test-cr>
@@ -125,6 +126,12 @@
mf:name "test-bom" ;
mf:result <test-bom.nt> .
+<#test-boolish-prefix>
+ a rdft:TestTurtleEval ;
+ mf:action <test-boolish-prefix.ttl> ;
+ mf:name "test-boolish-prefix" ;
+ mf:result <test-boolish-prefix.nt> .
+
<#test-changing-base>
a rdft:TestTurtleEval ;
mf:action <test-changing-base.ttl> ;
diff --git a/test/extra/good/test-boolish-prefix.nt b/test/extra/good/test-boolish-prefix.nt
new file mode 100644
index 00000000..d49eeab2
--- /dev/null
+++ b/test/extra/good/test-boolish-prefix.nt
@@ -0,0 +1,2 @@
+<http://example.org/s> <http://example.org/p> <http://example.org/falseish#o> .
+<http://example.org/s> <http://example.org/p> <http://example.org/trueish#o> .
diff --git a/test/extra/good/test-boolish-prefix.ttl b/test/extra/good/test-boolish-prefix.ttl
new file mode 100644
index 00000000..81ffdf11
--- /dev/null
+++ b/test/extra/good/test-boolish-prefix.ttl
@@ -0,0 +1,5 @@
+@prefix false.ish: <http://example.org/falseish#> .
+@prefix true.ish: <http://example.org/trueish#> .
+
+<http://example.org/s> <http://example.org/p> false.ish:o .
+<http://example.org/s> <http://example.org/p> true.ish:o .