Add missing tests from Turtle to TriG.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Fri, 08 Nov 2013 12:34:15 -0800
changeset 1251 1cd9d1df1dfb
parent 1250 5bd2bbd9ceec
child 1252 c9986fbb7e72
Add missing tests from Turtle to TriG.
trig/tests/LITERAL1_with_UTF8_boundaries.trig
trig/tests/LITERAL2_with_UTF8_boundaries.trig
trig/tests/LITERAL_LONG1_with_UTF8_boundaries.trig
trig/tests/LITERAL_LONG2_with_UTF8_boundaries.trig
trig/tests/LITERAL_with_UTF8_boundaries.nq
trig/tests/comment_following_PNAME_NS.nq
trig/tests/comment_following_PNAME_NS.trig
trig/tests/comment_following_localName.trig
trig/tests/manifest.ttl
trig/tests/number_sign_following_PNAME_NS.nq
trig/tests/number_sign_following_PNAME_NS.trig
trig/tests/number_sign_following_localName.nq
trig/tests/number_sign_following_localName.trig
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/LITERAL1_with_UTF8_boundaries.trig	Fri Nov 08 12:34:15 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> '€߿ࠀ࿿က쿿퀀퟿�𐀀𿿽񀀀󿿽􀀀􏿽' .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/LITERAL2_with_UTF8_boundaries.trig	Fri Nov 08 12:34:15 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "€߿ࠀ࿿က쿿퀀퟿�𐀀𿿽񀀀󿿽􀀀􏿽" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/LITERAL_LONG1_with_UTF8_boundaries.trig	Fri Nov 08 12:34:15 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> '''€߿ࠀ࿿က쿿퀀퟿�𐀀𿿽񀀀󿿽􀀀􏿽''' .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/LITERAL_LONG2_with_UTF8_boundaries.trig	Fri Nov 08 12:34:15 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> """€߿ࠀ࿿က쿿퀀퟿�𐀀𿿽񀀀󿿽􀀀􏿽""" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/LITERAL_with_UTF8_boundaries.nq	Fri Nov 08 12:34:15 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "\u0080\u07FF\u0800\u0FFF\u1000\uCFFF\uD000\uD7FF\uE000\uFFFD\U00010000\U0003FFFD\U00040000\U000FFFFD\U00100000\U0010FFFD" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/comment_following_PNAME_NS.nq	Fri Nov 08 12:34:15 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> <http://a.example/> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/comment_following_PNAME_NS.trig	Fri Nov 08 12:34:15 2013 -0800
@@ -0,0 +1,3 @@
+@prefix p: <http://a.example/> .
+<http://a.example/s> <http://a.example/p> p:#comment
+.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/comment_following_localName.trig	Fri Nov 08 12:34:15 2013 -0800
@@ -0,0 +1,8 @@
+@prefix p: <http://a.example/> .
+<http://a.example/s> <http://a.example/p> p:o#comment
+.
+
+<http://example/graph> {
+  <http://a.example/s> <http://a.example/p> <http://a.example/o>#comment
+  .
+}
--- a/trig/tests/manifest.ttl	Fri Nov 08 12:15:03 2013 -0800
+++ b/trig/tests/manifest.ttl	Fri Nov 08 12:34:15 2013 -0800
@@ -54,7 +54,6 @@
     <#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>
@@ -82,16 +81,20 @@
     <#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>
@@ -126,6 +129,20 @@
     <#repeated_semis_at_end>
     <#repeated_semis_not_at_end>
 
+    # tests requested by Jeremy Carroll
+    # http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c35
+    <#comment_following_localName>
+    <#number_sign_following_localName>
+    <#comment_following_PNAME_NS>
+    <#number_sign_following_PNAME_NS>
+
+    # tests from Dave Beckett
+    # http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c28
+    <#LITERAL_LONG2_with_REVERSE_SOLIDUS>
+    <#trig-syntax-bad-LITERAL2_with_langtag_and_datatype>
+    <#two_LITERAL_LONG2s>
+    <#langtagged_LONG_with_subtag>
+
     # original tests-ttl
     <#trig-syntax-file-01>
     <#trig-syntax-file-02>
@@ -299,13 +316,6 @@
     <#trig-eval-bad-03>
     <#trig-eval-bad-04>
 
-    # tests from Dave Beckett
-    # http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c28
-    <#LITERAL_LONG2_with_REVERSE_SOLIDUS>
-    <#trig-syntax-bad-LITERAL2_with_langtag_and_datatype>
-    <#two_LITERAL_LONG2s>
-    <#langtagged_LONG_with_subtag>
-
     # tests from David Robillard
     # http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c21
     <#trig-syntax-bad-blank-label-dot-end>
@@ -844,6 +854,14 @@
    mf:result    <LITERAL1_ascii_boundaries.nq> ;
    .
 
+<#LITERAL1_with_UTF8_boundaries> rdf:type rdft:TestTurtleEval ;
+   mf:name      "LITERAL1_with_UTF8_boundaries" ;
+   rdfs:comment "LITERAL1_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ;
+   rdft:approval rdft:Approved ;
+   mf:action    <LITERAL1_with_UTF8_boundaries.trig> ;
+   mf:result    <LITERAL_with_UTF8_boundaries.nq> ;
+   .
+
 <#LITERAL1_all_controls> rdf:type rdft:TestTrigEval ;
    mf:name      "LITERAL1_all_controls" ;
    rdfs:comment "LITERAL1_all_controls '\\x00\\x01\\x02\\x03\\x04...'" ;
@@ -876,6 +894,14 @@
    mf:result    <LITERAL_LONG1_ascii_boundaries.nq> ;
    .
 
+<#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...'" ;
+   rdft:approval rdft:Approved ;
+   mf:action    <LITERAL_LONG1_with_UTF8_boundaries.trig> ;
+   mf:result    <LITERAL_with_UTF8_boundaries.nq> ;
+   .
+
 <#LITERAL_LONG1_with_1_squote> rdf:type rdft:TestTrigEval ;
    mf:name      "LITERAL_LONG1_with_1_squote" ;
    rdfs:comment "LITERAL_LONG1 with 1 squote '''a'b'''" ;
@@ -908,6 +934,14 @@
    mf:result    <LITERAL2_ascii_boundaries.nq> ;
    .
 
+<#LITERAL2_with_UTF8_boundaries> rdf:type rdft:TestTurtleEval ;
+   mf:name      "LITERAL2_with_UTF8_boundaries" ;
+   rdfs:comment "LITERAL2_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ;
+   rdft:approval rdft:Approved ;
+   mf:action    <LITERAL2_with_UTF8_boundaries.trig> ;
+   mf:result    <LITERAL_with_UTF8_boundaries.nq> ;
+   .
+
 <#LITERAL_LONG2> rdf:type rdft:TestTrigEval ;
    mf:name      "LITERAL_LONG2" ;
    rdfs:comment "LITERAL_LONG2 \"\"\"x\"\"\"" ;
@@ -924,6 +958,14 @@
    mf:result    <LITERAL_LONG2_ascii_boundaries.nq> ;
    .
 
+<#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...'" ;
+   rdft:approval rdft:Approved ;
+   mf:action    <LITERAL_LONG2_with_UTF8_boundaries.trig> ;
+   mf:result    <LITERAL_with_UTF8_boundaries.nq> ;
+   .
+
 <#LITERAL_LONG2_with_1_squote> rdf:type rdft:TestTrigEval ;
    mf:name      "LITERAL_LONG2_with_1_squote" ;
    rdfs:comment "LITERAL_LONG2 with 1 squote \"\"\"a\"b\"\"\"" ;
@@ -2415,6 +2457,40 @@
    mf:action    <trig-eval-bad-04.trig> ;
    .
 
+# tests requested by Jeremy Carroll
+# http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c35
+<#comment_following_localName> rdf:type rdft:TestTurtleEval ;
+   mf:name      "comment_following_localName" ;
+   rdfs:comment "comment following localName" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <comment_following_localName.trig> ;
+   mf:result    <IRI_spo.nq> ;
+   .
+
+<#number_sign_following_localName> rdf:type rdft:TestTurtleEval ;
+   mf:name      "number_sign_following_localName" ;
+   rdfs:comment "number sign following localName" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <number_sign_following_localName.trig> ;
+   mf:result    <number_sign_following_localName.nq> ;
+   .
+
+<#comment_following_PNAME_NS> rdf:type rdft:TestTurtleEval ;
+   mf:name      "comment_following_PNAME_NS" ;
+   rdfs:comment "comment following PNAME_NS" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <comment_following_PNAME_NS.trig> ;
+   mf:result    <comment_following_PNAME_NS.nq> ;
+   .
+
+<#number_sign_following_PNAME_NS> rdf:type rdft:TestTurtleEval ;
+   mf:name      "number_sign_following_PNAME_NS" ;
+   rdfs:comment "number sign following PNAME_NS" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <number_sign_following_PNAME_NS.trig> ;
+   mf:result    <number_sign_following_PNAME_NS.nq> ;
+   .
+
 # tests from Dave Beckett
 # http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c28
 <#LITERAL_LONG2_with_REVERSE_SOLIDUS> rdf:type rdft:TestTrigEval ;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/number_sign_following_PNAME_NS.nq	Fri Nov 08 12:34:15 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> <http://a.example/#numbersign> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/number_sign_following_PNAME_NS.trig	Fri Nov 08 12:34:15 2013 -0800
@@ -0,0 +1,3 @@
+@prefix p: <http://a.example/>.
+<http://a.example/s> <http://a.example/p> p:\#numbersign
+.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/number_sign_following_localName.nq	Fri Nov 08 12:34:15 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> <http://a.example/o#numbersign> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/number_sign_following_localName.trig	Fri Nov 08 12:34:15 2013 -0800
@@ -0,0 +1,3 @@
+@prefix p: <http://a.example/> .
+<http://a.example/s> <http://a.example/p> p:o\#numbersign
+.