From 8f94d1b38df369c9316b499bf9434cf89c825098 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 9 Jun 2024 16:39:40 -0400 Subject: Add test cases for special characters in local names --- test/extra/good/manifest.ttl | 14 ++++++++++++++ test/extra/good/test-local-name-ends-with-dot.nt | 1 + test/extra/good/test-local-name-escapes.nt | 17 +++++++++++++++++ test/extra/good/test-local-name-escapes.ttl | 19 +++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 test/extra/good/test-local-name-ends-with-dot.nt create mode 100644 test/extra/good/test-local-name-escapes.nt create mode 100644 test/extra/good/test-local-name-escapes.ttl (limited to 'test/extra/good') diff --git a/test/extra/good/manifest.ttl b/test/extra/good/manifest.ttl index befe9451..3b911990 100644 --- a/test/extra/good/manifest.ttl +++ b/test/extra/good/manifest.ttl @@ -28,6 +28,8 @@ <#test-id> <#test-list-in-blank> <#test-list-subject> + <#test-local-name-ends-with-dot> + <#test-local-name-escapes> <#test-long-utf8> <#test-no-spaces> <#test-non-curie-uri> @@ -188,6 +190,18 @@ mf:name "test-list-subject" ; mf:result . +<#test-local-name-ends-with-dot> + a rdft:TestTurtleEval ; + mf:action ; + mf:name "test-local-name-ends-with-dot" ; + mf:result . + +<#test-local-name-escapes> + a rdft:TestTurtleEval ; + mf:action ; + mf:name "test-local-name-escapes" ; + mf:result . + <#test-long-utf8> a rdft:TestTurtleEval ; mf:action ; diff --git a/test/extra/good/test-local-name-ends-with-dot.nt b/test/extra/good/test-local-name-ends-with-dot.nt new file mode 100644 index 00000000..3285348a --- /dev/null +++ b/test/extra/good/test-local-name-ends-with-dot.nt @@ -0,0 +1 @@ + . diff --git a/test/extra/good/test-local-name-escapes.nt b/test/extra/good/test-local-name-escapes.nt new file mode 100644 index 00000000..a6362d7a --- /dev/null +++ b/test/extra/good/test-local-name-escapes.nt @@ -0,0 +1,17 @@ + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . diff --git a/test/extra/good/test-local-name-escapes.ttl b/test/extra/good/test-local-name-escapes.ttl new file mode 100644 index 00000000..8c5fce37 --- /dev/null +++ b/test/extra/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