diff options
author | David Robillard <d@drobilla.net> | 2019-03-30 13:02:58 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-30 13:02:58 +0100 |
commit | 611094ffa4014ba34e6f2c8dc083878ab6073411 (patch) | |
tree | 4ad7e368c440dd5ee7660d3cfaefb7117cd42c6d /tests/good | |
parent | 5ecd64db399392493cf4f2a5154d1deb3b498c88 (diff) | |
download | serd-611094ffa4014ba34e6f2c8dc083878ab6073411.tar.gz serd-611094ffa4014ba34e6f2c8dc083878ab6073411.tar.bz2 serd-611094ffa4014ba34e6f2c8dc083878ab6073411.zip |
Fix parsing "a" abbreviation without padding whitespace
Diffstat (limited to 'tests/good')
-rw-r--r-- | tests/good/manifest.ttl | 7 | ||||
-rw-r--r-- | tests/good/test-a-without-whitespace.nt | 6 | ||||
-rw-r--r-- | tests/good/test-a-without-whitespace.ttl | 6 |
3 files changed, 19 insertions, 0 deletions
diff --git a/tests/good/manifest.ttl b/tests/good/manifest.ttl index 25afdd5f..dd83a7e5 100644 --- a/tests/good/manifest.ttl +++ b/tests/good/manifest.ttl @@ -16,6 +16,7 @@ <#test-16> <#test-18> <#test-30> + <#test-a-without-whitespace> <#test-backspace> <#test-bad-utf8> <#test-base-query> @@ -96,6 +97,12 @@ mf:action <test-30.ttl> ; mf:result <test-30.nt> . +<#test-a-without-whitespace> + rdf:type rdft:TestTurtleEval ; + mf:name "test-a-without-whitespace" ; + mf:action <test-a-without-whitespace.ttl> ; + mf:result <test-a-without-whitespace.nt> . + <#test-backspace> rdf:type rdft:TestTurtleEval ; mf:name "test-backspace" ; diff --git a/tests/good/test-a-without-whitespace.nt b/tests/good/test-a-without-whitespace.nt new file mode 100644 index 00000000..27c5e7da --- /dev/null +++ b/tests/good/test-a-without-whitespace.nt @@ -0,0 +1,6 @@ +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/> . +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> _:b3 . +_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . +<http://example.org/s> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Thing> . +<http://example.org/s> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> _:b5 . +<http://example.org/s> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . diff --git a/tests/good/test-a-without-whitespace.ttl b/tests/good/test-a-without-whitespace.ttl new file mode 100644 index 00000000..2d6db000 --- /dev/null +++ b/tests/good/test-a-without-whitespace.ttl @@ -0,0 +1,6 @@ +[a<http://example.org/>]. +[a[]]. +[a()]. +<http://example.org/s>a<http://example.org/Thing>. +<http://example.org/s>a[]. +<http://example.org/s>a(). |