diff options
author | David Robillard <d@drobilla.net> | 2019-03-17 15:18:32 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-17 15:18:32 +0100 |
commit | cb231f47672d777998507e09e7f5f303f4dddf0b (patch) | |
tree | 15d49e618ae4d1d27918b3b411374f7020c4b347 /tests/good | |
parent | 4e479c3679e79a72da50e9cfec4f4d7f039e3a04 (diff) | |
download | serd-cb231f47672d777998507e09e7f5f303f4dddf0b.tar.gz serd-cb231f47672d777998507e09e7f5f303f4dddf0b.tar.bz2 serd-cb231f47672d777998507e09e7f5f303f4dddf0b.zip |
Fix bug parsing TriG graphs with several squashed trailing dots
Diffstat (limited to 'tests/good')
-rw-r--r-- | tests/good/manifest.ttl | 7 | ||||
-rw-r--r-- | tests/good/test-several-eaten-dots.nq | 3 | ||||
-rw-r--r-- | tests/good/test-several-eaten-dots.trig | 6 |
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 |