From dc9f6c8d6b8a218a1209baea2297a87eded17bff Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 31 Mar 2013 17:33:21 +0000 Subject: Add new literal tests from Turtle test suite. git-svn-id: http://svn.drobilla.net/serd/trunk@449 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- tests/tests-ttl/LITERAL1_ascii_boundaries.nt | 1 + tests/tests-ttl/LITERAL1_ascii_boundaries.ttl | Bin 0 -> 57 bytes tests/tests-ttl/LITERAL1_with_UTF8_boundaries.ttl | 1 + tests/tests-ttl/LITERAL2_ascii_boundaries.nt | 1 + tests/tests-ttl/LITERAL2_ascii_boundaries.ttl | Bin 0 -> 57 bytes tests/tests-ttl/LITERAL2_with_UTF8_boundaries.ttl | 1 + tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.nt | 1 + tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.ttl | Bin 0 -> 53 bytes .../LITERAL_LONG1_with_UTF8_boundaries.ttl | 1 + tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.nt | 1 + tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.ttl | Bin 0 -> 53 bytes .../LITERAL_LONG2_with_UTF8_boundaries.ttl | 1 + tests/tests-ttl/LITERAL_with_UTF8_boundaries.nt | 1 + tests/tests-ttl/manifest.ttl | 147 ++++++++++++++++++++- 14 files changed, 152 insertions(+), 4 deletions(-) create mode 100644 tests/tests-ttl/LITERAL1_ascii_boundaries.nt create mode 100644 tests/tests-ttl/LITERAL1_ascii_boundaries.ttl create mode 100644 tests/tests-ttl/LITERAL1_with_UTF8_boundaries.ttl create mode 100644 tests/tests-ttl/LITERAL2_ascii_boundaries.nt create mode 100644 tests/tests-ttl/LITERAL2_ascii_boundaries.ttl create mode 100644 tests/tests-ttl/LITERAL2_with_UTF8_boundaries.ttl create mode 100644 tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.nt create mode 100644 tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.ttl create mode 100644 tests/tests-ttl/LITERAL_LONG1_with_UTF8_boundaries.ttl create mode 100644 tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.nt create mode 100644 tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.ttl create mode 100644 tests/tests-ttl/LITERAL_LONG2_with_UTF8_boundaries.ttl create mode 100644 tests/tests-ttl/LITERAL_with_UTF8_boundaries.nt diff --git a/tests/tests-ttl/LITERAL1_ascii_boundaries.nt b/tests/tests-ttl/LITERAL1_ascii_boundaries.nt new file mode 100644 index 00000000..69c41447 --- /dev/null +++ b/tests/tests-ttl/LITERAL1_ascii_boundaries.nt @@ -0,0 +1 @@ + "\u0000\t\u000B\u000C\u000E&([]\u007F" . diff --git a/tests/tests-ttl/LITERAL1_ascii_boundaries.ttl b/tests/tests-ttl/LITERAL1_ascii_boundaries.ttl new file mode 100644 index 00000000..7d65396f Binary files /dev/null and b/tests/tests-ttl/LITERAL1_ascii_boundaries.ttl differ diff --git a/tests/tests-ttl/LITERAL1_with_UTF8_boundaries.ttl b/tests/tests-ttl/LITERAL1_with_UTF8_boundaries.ttl new file mode 100644 index 00000000..ce3a4919 --- /dev/null +++ b/tests/tests-ttl/LITERAL1_with_UTF8_boundaries.ttl @@ -0,0 +1 @@ + '€߿ࠀ࿿က쿿퀀퟿￿𐀀𿿿񀀀󿿿􀀀􏿽' . diff --git a/tests/tests-ttl/LITERAL2_ascii_boundaries.nt b/tests/tests-ttl/LITERAL2_ascii_boundaries.nt new file mode 100644 index 00000000..270a51e3 --- /dev/null +++ b/tests/tests-ttl/LITERAL2_ascii_boundaries.nt @@ -0,0 +1 @@ + "\u0000\t\u000B\u000C\u000E!#[]\u007F" . diff --git a/tests/tests-ttl/LITERAL2_ascii_boundaries.ttl b/tests/tests-ttl/LITERAL2_ascii_boundaries.ttl new file mode 100644 index 00000000..90b4cd69 Binary files /dev/null and b/tests/tests-ttl/LITERAL2_ascii_boundaries.ttl differ diff --git a/tests/tests-ttl/LITERAL2_with_UTF8_boundaries.ttl b/tests/tests-ttl/LITERAL2_with_UTF8_boundaries.ttl new file mode 100644 index 00000000..f7e71af4 --- /dev/null +++ b/tests/tests-ttl/LITERAL2_with_UTF8_boundaries.ttl @@ -0,0 +1 @@ + "€߿ࠀ࿿က쿿퀀퟿￿𐀀𿿿񀀀󿿿􀀀􏿽" . diff --git a/tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.nt b/tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.nt new file mode 100644 index 00000000..a592b4a1 --- /dev/null +++ b/tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.nt @@ -0,0 +1 @@ + "\u0000&([]\u007F" . diff --git a/tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.ttl b/tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.ttl new file mode 100644 index 00000000..f943e249 Binary files /dev/null and b/tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.ttl differ diff --git a/tests/tests-ttl/LITERAL_LONG1_with_UTF8_boundaries.ttl b/tests/tests-ttl/LITERAL_LONG1_with_UTF8_boundaries.ttl new file mode 100644 index 00000000..59a70515 --- /dev/null +++ b/tests/tests-ttl/LITERAL_LONG1_with_UTF8_boundaries.ttl @@ -0,0 +1 @@ + '''€߿ࠀ࿿က쿿퀀퟿￿𐀀𿿿񀀀󿿿􀀀􏿽''' . diff --git a/tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.nt b/tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.nt new file mode 100644 index 00000000..28785039 --- /dev/null +++ b/tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.nt @@ -0,0 +1 @@ + "\u0000!#[]\u007F" . diff --git a/tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.ttl b/tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.ttl new file mode 100644 index 00000000..e919865f Binary files /dev/null and b/tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.ttl differ diff --git a/tests/tests-ttl/LITERAL_LONG2_with_UTF8_boundaries.ttl b/tests/tests-ttl/LITERAL_LONG2_with_UTF8_boundaries.ttl new file mode 100644 index 00000000..c90d9a0f --- /dev/null +++ b/tests/tests-ttl/LITERAL_LONG2_with_UTF8_boundaries.ttl @@ -0,0 +1 @@ + """€߿ࠀ࿿က쿿퀀퟿￿𐀀𿿿񀀀󿿿􀀀􏿽""" . diff --git a/tests/tests-ttl/LITERAL_with_UTF8_boundaries.nt b/tests/tests-ttl/LITERAL_with_UTF8_boundaries.nt new file mode 100644 index 00000000..c952f632 --- /dev/null +++ b/tests/tests-ttl/LITERAL_with_UTF8_boundaries.nt @@ -0,0 +1 @@ + "\u0080\u07FF\u0800\u0FFF\u1000\uCFFF\uD000\uD7FF\uE000\uFFFF\U00010000\U0003FFFF\U00040000\U000FFFFF\U00100000\U0010FFFD" . diff --git a/tests/tests-ttl/manifest.ttl b/tests/tests-ttl/manifest.ttl index d38ed41d..e686a17f 100644 --- a/tests/tests-ttl/manifest.ttl +++ b/tests/tests-ttl/manifest.ttl @@ -37,17 +37,26 @@ <#prefixed_IRI_predicate> <#prefixed_IRI_object> <#prefix_only_IRI> + # <#prefix_with_PN_CHARS_BASE_character_boundaries> + # <#prefix_with_non_leading_extras> <#default_namespace_IRI> <#prefix_reassigned_and_used> + # <#reserved_escaped_localName> <#percent_escaped_localName> <#HYPHEN_MINUS_in_localName> <#underscore_in_localName> <#localname_with_COLON> + # <#localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries> + # <#localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries> + # <#localName_with_nfc_PN_CHARS_BASE_character_boundaries> + # <#localName_with_PN_CHARS_BASE_character_boundaries> <#localName_with_leading_underscore> <#localName_with_leading_digit> + # <#localName_with_non_leading_extras> <#old_style_base> <#labeled_blank_node_subject> <#labeled_blank_node_object> + # <#labeled_blank_node_with_PN_CHARS_BASE_character_boundaries> <#labeled_blank_node_with_leading_underscore> <#labeled_blank_node_with_leading_digit> <#labeled_blank_node_with_non_leading_extras> @@ -66,13 +75,21 @@ <#first> <#last> <#LITERAL1> + <#LITERAL1_ascii_boundaries> + <#LITERAL1_with_UTF8_boundaries> <#LITERAL1_all_controls> <#LITERAL1_all_punctuation> <#LITERAL_LONG1> + <#LITERAL_LONG1_ascii_boundaries> + <#LITERAL_LONG1_with_UTF8_boundaries> <#LITERAL_LONG1_with_1_squote> <#LITERAL_LONG1_with_2_squotes> <#LITERAL2> + <#LITERAL2_ascii_boundaries> + <#LITERAL2_with_UTF8_boundaries> <#LITERAL_LONG2> + <#LITERAL_LONG2_ascii_boundaries> + <#LITERAL_LONG2_with_UTF8_boundaries> <#LITERAL_LONG2_with_1_squote> <#LITERAL_LONG2_with_2_squotes> <#literal_with_CHARACTER_TABULATION> @@ -116,12 +133,8 @@ <#turtle-syntax-uri-03> <#turtle-syntax-uri-04> <#turtle-syntax-base-01> - <#turtle-syntax-base-02> <#turtle-syntax-base-03> - <#turtle-syntax-base-04> <#turtle-syntax-prefix-01> - <#turtle-syntax-prefix-02> - <#turtle-syntax-prefix-03> <#turtle-syntax-prefix-04> <#turtle-syntax-prefix-05> <#turtle-syntax-prefix-06> @@ -371,6 +384,48 @@ mf:result ; . +# <#prefix_with_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ; +# mf:name "prefix_with_PN_CHARS_BASE_character_boundaries" ; +# rdfs:comment "prefix with PN CHARS BASE character boundaries (prefix: AZazÀÖØöø...:)" ; +# mf:action ; +# mf:result ; +# . + +# <#prefix_with_non_leading_extras> rdf:type rdft:TestTurtleEval ; +# mf:name "prefix_with_non_leading_extras" ; +# rdfs:comment "prefix with_non_leading_extras (_:a·̀ͯ‿.⁀)" ; +# mf:action ; +# mf:result ; +# . + +# <#localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ; +# mf:name "localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries" ; +# rdfs:comment "localName with assigned, NFC-normalized, basic-multilingual-plane PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ; +# mf:action ; +# mf:result ; +# . + +# <#localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ; +# mf:name "localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries" ; +# rdfs:comment "localName with assigned, NFC-normalized PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ; +# mf:action ; +# mf:result ; +# . + +# <#localName_with_nfc_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ; +# mf:name "localName_with_nfc_PN_CHARS_BASE_character_boundaries" ; +# rdfs:comment "localName with nfc-normalize PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ; +# mf:action ; +# mf:result ; +# . + +# <#localName_with_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ; +# mf:name "localName_with_PN_CHARS_BASE_character_boundaries" ; +# rdfs:comment "localName with PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ; +# mf:action ; +# mf:result ; +# . + <#default_namespace_IRI> rdf:type rdft:TestTurtleEval ; mf:name "default_namespace_IRI" ; rdfs:comment "default namespace IRI (:ln)" ; @@ -385,6 +440,13 @@ mf:result ; . +# <#reserved_escaped_localName> rdf:type rdft:TestTurtleEval ; +# mf:name "reserved_escaped_localName" ; +# rdfs:comment "reserved-escaped local name" ; +# mf:action ; +# mf:result ; +# . + <#percent_escaped_localName> rdf:type rdft:TestTurtleEval ; mf:name "percent_escaped_localName" ; rdfs:comment "percent-escaped local name" ; @@ -427,6 +489,13 @@ mf:result ; . +# <#localName_with_non_leading_extras> rdf:type rdft:TestTurtleEval ; +# mf:name "localName_with_non_leading_extras" ; +# rdfs:comment "localName with_non_leading_extras (_:a·̀ͯ‿.⁀)" ; +# mf:action ; +# mf:result ; +# . + <#old_style_base> rdf:type rdft:TestTurtleEval ; mf:name "old_style_base" ; rdfs:comment "old-style base" ; @@ -448,6 +517,13 @@ mf:result ; . +# <#labeled_blank_node_with_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ; +# mf:name "labeled_blank_node_with_PN_CHARS_BASE_character_boundaries" ; +# rdfs:comment "labeled blank node with PN_CHARS_BASE character boundaries (_:AZazÀÖØöø...)" ; +# mf:action ; +# mf:result ; +# . + <#labeled_blank_node_with_leading_underscore> rdf:type rdft:TestTurtleEval ; mf:name "labeled_blank_node_with_leading_underscore" ; rdfs:comment "labeled blank node with_leading_underscore (_:_)" ; @@ -462,6 +538,13 @@ mf:result ; . +# <#labeled_blank_node_with_non_leading_extras> rdf:type rdft:TestTurtleEval ; +# mf:name "labeled_blank_node_with_non_leading_extras" ; +# rdfs:comment "labeled blank node with_non_leading_extras (_:a·̀ͯ‿.⁀)" ; +# mf:action ; +# mf:result ; +# . + <#anonymous_blank_node_subject> rdf:type rdft:TestTurtleEval ; mf:name "anonymous_blank_node_subject" ; rdfs:comment "anonymous blank node subject" ; @@ -567,6 +650,20 @@ mf:result ; . +<#LITERAL1_ascii_boundaries> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL1_ascii_boundaries" ; + rdfs:comment "LITERAL1_ascii_boundaries '\\x00\\x09\\x0b\\x0c\\x0e\\x26\\x28...'" ; + mf:action ; + mf:result ; + . + +<#LITERAL1_with_UTF8_boundaries> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL1_with_UTF8_boundaries" ; + rdfs:comment "LITERAL1_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ; + mf:action ; + mf:result ; + . + <#LITERAL1_all_controls> rdf:type rdft:TestTurtleEval ; mf:name "LITERAL1_all_controls" ; rdfs:comment "LITERAL1_all_controls '\\x00\\x01\\x02\\x03\\x04...'" ; @@ -588,6 +685,20 @@ mf:result ; . +<#LITERAL_LONG1_ascii_boundaries> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL_LONG1_ascii_boundaries" ; + rdfs:comment "LITERAL_LONG1_ascii_boundaries '\\x00\\x26\\x28...'" ; + mf:action ; + mf:result ; + . + +# <#LITERAL_LONG1_with_UTF8_boundaries> rdf:type rdft:TestTurtleEval ; +# mf:name "LITERAL_LONG1_with_UTF8_boundaries" ; +# rdfs:comment "LITERAL_LONG1_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ; +# mf:action ; +# mf:result ; +# . + <#LITERAL_LONG1_with_1_squote> rdf:type rdft:TestTurtleEval ; mf:name "LITERAL_LONG1_with_1_squote" ; rdfs:comment "LITERAL_LONG1 with 1 squote '''a'b'''" ; @@ -609,6 +720,20 @@ mf:result ; . +<#LITERAL2_ascii_boundaries> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL2_ascii_boundaries" ; + rdfs:comment "LITERAL2_ascii_boundaries '\\x00\\x09\\x0b\\x0c\\x0e\\x21\\x23...'" ; + mf:action ; + mf:result ; + . + +<#LITERAL2_with_UTF8_boundaries> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL2_with_UTF8_boundaries" ; + rdfs:comment "LITERAL2_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ; + mf:action ; + mf:result ; + . + <#LITERAL_LONG2> rdf:type rdft:TestTurtleEval ; mf:name "LITERAL_LONG2" ; rdfs:comment "LITERAL_LONG2 \"\"\"x\"\"\"" ; @@ -616,6 +741,20 @@ mf:result ; . +<#LITERAL_LONG2_ascii_boundaries> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL_LONG2_ascii_boundaries" ; + rdfs:comment "LITERAL_LONG2_ascii_boundaries '\\x00\\x21\\x23...'" ; + mf:action ; + mf:result ; + . + +<#LITERAL_LONG2_with_UTF8_boundaries> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL_LONG2_with_UTF8_boundaries" ; + rdfs:comment "LITERAL_LONG2_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ; + mf:action ; + mf:result ; + . + <#LITERAL_LONG2_with_1_squote> rdf:type rdft:TestTurtleEval ; mf:name "LITERAL_LONG2_with_1_squote" ; rdfs:comment "LITERAL_LONG2 with 1 squote \"\"\"a\"b\"\"\"" ; -- cgit v1.2.1