From 8974148437e9c98bc715a96a0cdeef8f7a9726f2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 15 May 2021 08:42:40 -0400 Subject: Add tests for weird prefixed name edge cases in RDF 1.1 Turtle --- test/good/manifest.ttl | 14 ++++++++++++++ test/good/test-local-name-ends-with-dot.nt | 1 + test/good/test-local-name-escapes.nt | 17 +++++++++++++++++ test/good/test-local-name-escapes.ttl | 19 +++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 test/good/test-local-name-ends-with-dot.nt create mode 100644 test/good/test-local-name-escapes.nt create mode 100644 test/good/test-local-name-escapes.ttl (limited to 'test/good') diff --git a/test/good/manifest.ttl b/test/good/manifest.ttl index fe3e195e..b546b9f7 100644 --- a/test/good/manifest.ttl +++ b/test/good/manifest.ttl @@ -38,6 +38,8 @@ <#test-list-in-blank> <#test-list-subject> <#test-list> + <#test-local-name-ends-with-dot> + <#test-local-name-escapes> <#test-long-string> <#test-several-eaten-dots> <#test-no-spaces> @@ -226,6 +228,18 @@ mf:action ; mf:result . +<#test-local-name-ends-with-dot> + rdf:type rdft:TestTurtleEval ; + mf:name "test-local-name-ends-with-dot" ; + mf:action ; + mf:result . + +<#test-local-name-escapes> + rdf:type rdft:TestTurtleEval ; + mf:name "test-local-name-escapes" ; + mf:action ; + mf:result . + <#test-long-string> rdf:type rdft:TestTurtleEval ; mf:name "test-long-string" ; diff --git a/test/good/test-local-name-ends-with-dot.nt b/test/good/test-local-name-ends-with-dot.nt new file mode 100644 index 00000000..260eaffe --- /dev/null +++ b/test/good/test-local-name-ends-with-dot.nt @@ -0,0 +1 @@ + . diff --git a/test/good/test-local-name-escapes.nt b/test/good/test-local-name-escapes.nt new file mode 100644 index 00000000..a6362d7a --- /dev/null +++ b/test/good/test-local-name-escapes.nt @@ -0,0 +1,17 @@ + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . diff --git a/test/good/test-local-name-escapes.ttl b/test/good/test-local-name-escapes.ttl new file mode 100644 index 00000000..8c5fce37 --- /dev/null +++ b/test/good/test-local-name-escapes.ttl @@ -0,0 +1,19 @@ +@prefix eg: . + +eg:s eg:p eg:o\' . +eg:s eg:p eg:o\! . +eg:s eg:p eg:o\# . +eg:s eg:p eg:o\$ . +eg:s eg:p eg:o\% . +eg:s eg:p eg:o\& . +eg:s eg:p eg:o\( . +eg:s eg:p eg:o\) . +eg:s eg:p eg:o\* . +eg:s eg:p eg:o\+ . +eg:s eg:p eg:o\, . +eg:s eg:p eg:o\/ . +eg:s eg:p eg:o\; . +eg:s eg:p eg:o\= . +eg:s eg:p eg:o\? . +eg:s eg:p eg:o\@ . +eg:s eg:p eg:o\~ . -- cgit v1.2.1