aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-17 15:18:32 +0100
committerDavid Robillard <d@drobilla.net>2019-03-17 15:18:32 +0100
commitcb231f47672d777998507e09e7f5f303f4dddf0b (patch)
tree15d49e618ae4d1d27918b3b411374f7020c4b347 /tests
parent4e479c3679e79a72da50e9cfec4f4d7f039e3a04 (diff)
downloadserd-cb231f47672d777998507e09e7f5f303f4dddf0b.tar.gz
serd-cb231f47672d777998507e09e7f5f303f4dddf0b.tar.bz2
serd-cb231f47672d777998507e09e7f5f303f4dddf0b.zip
Fix bug parsing TriG graphs with several squashed trailing dots
Diffstat (limited to 'tests')
-rw-r--r--tests/good/manifest.ttl7
-rw-r--r--tests/good/test-several-eaten-dots.nq3
-rw-r--r--tests/good/test-several-eaten-dots.trig6
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/good/manifest.ttl b/tests/good/manifest.ttl
index f8641326..25afdd5f 100644
--- a/tests/good/manifest.ttl
+++ b/tests/good/manifest.ttl
@@ -40,6 +40,7 @@
<#test-list-subject>
<#test-list>
<#test-long-string>
+ <#test-several-eaten-dots>
<#test-no-spaces>
<#test-non-curie-uri>
<#test-num>
@@ -239,6 +240,12 @@
mf:action <test-long-string.ttl> ;
mf:result <test-long-string.nt> .
+<#test-several-eaten-dots>
+ rdf:type rdft:TestTrigEval ;
+ mf:name "test-several-eaten-dots" ;
+ mf:action <test-several-eaten-dots.trig> ;
+ mf:result <test-several-eaten-dots.nq> .
+
<#test-no-spaces>
rdf:type rdft:TestTurtleEval ;
mf:name "test-no-spaces" ;
diff --git a/tests/good/test-several-eaten-dots.nq b/tests/good/test-several-eaten-dots.nq
new file mode 100644
index 00000000..5cafa59f
--- /dev/null
+++ b/tests/good/test-several-eaten-dots.nq
@@ -0,0 +1,3 @@
+<https://example.com/s> <https://example.com/p1> <https://example.com/o1> <https://example.com/g> .
+<https://example.com/s> <https://example.com/p1> <https://example.com/o2> <https://example.com/g> .
+<https://example.com/s> <https://example.com/p2> <https://example.com/o3> <https://example.com/g> .
diff --git a/tests/good/test-several-eaten-dots.trig b/tests/good/test-several-eaten-dots.trig
new file mode 100644
index 00000000..bab135ed
--- /dev/null
+++ b/tests/good/test-several-eaten-dots.trig
@@ -0,0 +1,6 @@
+prefix : <https://example.com/>
+
+:g {
+ :s :p1 :o1.
+ :s :p1 :o2; :p2 :o3.
+} \ No newline at end of file