+ Dave Beckett's tests 33, 35, 36, 37
authorEric Prud'hommeaux <eric@w3.org>
Sun, 24 Mar 2013 10:54:58 -0400
changeset 678 80393baa6512
parent 677 dad56881f954
child 679 6ac8b8383116
child 682 4c8bfe7ae424
+ Dave Beckett's tests 33, 35, 36, 37
rdf-turtle/tests-ttl/LITERAL_LONG2_with_REVERSE_SOLIDUS.nt
rdf-turtle/tests-ttl/LITERAL_LONG2_with_REVERSE_SOLIDUS.ttl
rdf-turtle/tests-ttl/langtagged_LONG_with_subtag.nt
rdf-turtle/tests-ttl/langtagged_LONG_with_subtag.ttl
rdf-turtle/tests-ttl/manifest.ttl
rdf-turtle/tests-ttl/turtle-syntax-bad-LITERAL2_with_langtag_and_datatype.ttl
rdf-turtle/tests-ttl/two_LITERAL_LONG2s.nt
rdf-turtle/tests-ttl/two_LITERAL_LONG2s.ttl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-ttl/LITERAL_LONG2_with_REVERSE_SOLIDUS.nt	Sun Mar 24 10:54:58 2013 -0400
@@ -0,0 +1,1 @@
+<http://example.org/ns#s> <http://example.org/ns#p1> "test-\\" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-ttl/LITERAL_LONG2_with_REVERSE_SOLIDUS.ttl	Sun Mar 24 10:54:58 2013 -0400
@@ -0,0 +1,3 @@
+@prefix : <http://example.org/ns#> .
+
+:s :p1 """test-\\""" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-ttl/langtagged_LONG_with_subtag.nt	Sun Mar 24 10:54:58 2013 -0400
@@ -0,0 +1,1 @@
+<http://example.org/ex#a> <http://example.org/ex#b> "Cheers"@en-UK .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-ttl/langtagged_LONG_with_subtag.ttl	Sun Mar 24 10:54:58 2013 -0400
@@ -0,0 +1,3 @@
+# Test long literal with lang tag
+@prefix :  <http://example.org/ex#> .
+:a :b """Cheers"""@en-UK .
--- a/rdf-turtle/tests-ttl/manifest.ttl	Sun Mar 24 01:42:03 2013 -0400
+++ b/rdf-turtle/tests-ttl/manifest.ttl	Sun Mar 24 10:54:58 2013 -0400
@@ -301,6 +301,11 @@
     <#turtle-eval-bad-02>
     <#turtle-eval-bad-03>
     <#turtle-eval-bad-04>
+
+    <#LITERAL_LONG2_with_REVERSE_SOLIDUS>
+    <#turtle-syntax-bad-LITERAL2_with_langtag_and_datatype>
+    <#two_LITERAL_LONG2s>
+    <#langtagged_LONG_with_subtag>
     ) .
 
 # atomic tests
@@ -2056,3 +2061,32 @@
    rdfs:comment "Bad IRI : {abc} (negative evaluation test)" ;
    mf:action    <turtle-eval-bad-04.ttl> ;
    .
+
+# Dave Beckett's contributions <http://www.w3.org/alpine.DEB.2.02.1303231530340.12417@xyzzy.dajobe.org>
+<#LITERAL_LONG2_with_REVERSE_SOLIDUS> rdf:type rdft:TestTurtleEval ;
+   mf:name    "LITERAL_LONG2_with_REVERSE_SOLIDUS" ;
+   rdfs:comment "REVERSE SOLIDUS at end of LITERAL_LONG2" ;
+   mf:action    <LITERAL_LONG2_with_REVERSE_SOLIDUS.ttl> ;
+   mf:result    <LITERAL_LONG2_with_REVERSE_SOLIDUS.nt> ;
+   .
+
+<#turtle-syntax-bad-LITERAL2_with_langtag_and_datatype> rdf:type rdft:TestTurtleNegativeSyntax ;
+   mf:name    "turtle-syntax-bad-num-05" ;
+   rdfs:comment "Bad number format (negative test)" ;
+   mf:action    <turtle-syntax-bad-LITERAL2_with_langtag_and_datatype.ttl> ;
+   .
+
+<#two_LITERAL_LONG2s> rdf:type rdft:TestTurtleEval ;
+   mf:name    "two_LITERAL_LONG2s" ;
+   rdfs:comment "two LITERAL_LONG2s testing quote delimiter overrun" ;
+   mf:action    <two_LITERAL_LONG2s.ttl> ;
+   mf:result    <two_LITERAL_LONG2s.nt> ;
+   .
+
+<#langtagged_LONG_with_subtag> rdf:type rdft:TestTurtleEval ;
+   mf:name      "langtagged_LONG_with_subtag" ;
+   rdfs:comment "langtagged LONG with subtag \"\"\"Cheers\"\"\"@en-UK" ;
+   mf:action    <langtagged_LONG_with_subtag.ttl> ;
+   mf:result    <langtagged_LONG_with_subtag.nt> ;
+   .
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-ttl/turtle-syntax-bad-LITERAL2_with_langtag_and_datatype.ttl	Sun Mar 24 10:54:58 2013 -0400
@@ -0,0 +1,1 @@
+<http://example.org/resource> <http://example.org#pred> "value"@en^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-ttl/two_LITERAL_LONG2s.nt	Sun Mar 24 10:54:58 2013 -0400
@@ -0,0 +1,2 @@
+<http://example.org/ex#a> <http://example.org/ex#b> "first long literal" .
+<http://example.org/ex#c> <http://example.org/ex#d> "second long literal" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-ttl/two_LITERAL_LONG2s.ttl	Sun Mar 24 10:54:58 2013 -0400
@@ -0,0 +1,4 @@
+# Test long literal twice to ensure it does not over-quote
+@prefix :  <http://example.org/ex#> .
+:a :b """first long literal""" .
+:c :d """second long literal""" .