aboutsummaryrefslogtreecommitdiffstats
path: root/test/extra
diff options
context:
space:
mode:
Diffstat (limited to 'test/extra')
-rw-r--r--test/extra/bad/bad-bom-1.ttl3
-rw-r--r--test/extra/bad/bad-bom-2.ttl3
-rw-r--r--test/extra/bad/bad-bom-only-1.ttl1
-rw-r--r--test/extra/bad/bad-bom-only-2.ttl1
-rw-r--r--test/extra/bad/manifest.ttl26
-rw-r--r--test/extra/good/manifest.ttl7
-rw-r--r--test/extra/good/test-local-name-percent.nt2
-rw-r--r--test/extra/good/test-local-name-percent.ttl4
-rw-r--r--test/extra/pretty/datatypes.ttl2
9 files changed, 45 insertions, 4 deletions
diff --git a/test/extra/bad/bad-bom-1.ttl b/test/extra/bad/bad-bom-1.ttl
new file mode 100644
index 00000000..7d7681d4
--- /dev/null
+++ b/test/extra/bad/bad-bom-1.ttl
@@ -0,0 +1,3 @@
+ï# This file starts with the first byte of the UTF-8 Byte Order Mark
+
+<http://example.org/thing> a <http://example.org/Thing> .
diff --git a/test/extra/bad/bad-bom-2.ttl b/test/extra/bad/bad-bom-2.ttl
new file mode 100644
index 00000000..9ce3f093
--- /dev/null
+++ b/test/extra/bad/bad-bom-2.ttl
@@ -0,0 +1,3 @@
+ï»# This file starts with the first two bytes of the UTF-8 Byte Order Mark
+
+<http://example.org/thing> a <http://example.org/Thing> .
diff --git a/test/extra/bad/bad-bom-only-1.ttl b/test/extra/bad/bad-bom-only-1.ttl
new file mode 100644
index 00000000..a4a063a1
--- /dev/null
+++ b/test/extra/bad/bad-bom-only-1.ttl
@@ -0,0 +1 @@
+ï \ No newline at end of file
diff --git a/test/extra/bad/bad-bom-only-2.ttl b/test/extra/bad/bad-bom-only-2.ttl
new file mode 100644
index 00000000..022c50f1
--- /dev/null
+++ b/test/extra/bad/bad-bom-only-2.ttl
@@ -0,0 +1 @@
+ï» \ No newline at end of file
diff --git a/test/extra/bad/manifest.ttl b/test/extra/bad/manifest.ttl
index 7e35e5ff..64dbf05f 100644
--- a/test/extra/bad/manifest.ttl
+++ b/test/extra/bad/manifest.ttl
@@ -13,7 +13,10 @@
<#bad-blank-node-label>
<#bad-blank-predicate>
<#bad-blank-syntax>
- <#bad-bom>
+ <#bad-bom-1>
+ <#bad-bom-2>
+ <#bad-bom-only-1>
+ <#bad-bom-only-2>
<#bad-char-in-local>
<#bad-char-in-prefix>
<#bad-char-in-uri>
@@ -165,10 +168,25 @@
mf:action <bad-blank-syntax.ttl> ;
mf:name "bad-blank-syntax" .
-<#bad-bom>
+<#bad-bom-1>
a rdft:TestTurtleNegativeSyntax ;
- mf:action <bad-bom.ttl> ;
- mf:name "bad-bom" .
+ mf:action <bad-bom-1.ttl> ;
+ mf:name "bad-bom-1" .
+
+<#bad-bom-2>
+ a rdft:TestTurtleNegativeSyntax ;
+ mf:action <bad-bom-2.ttl> ;
+ mf:name "bad-bom-2" .
+
+<#bad-bom-only-1>
+ a rdft:TestTurtleNegativeSyntax ;
+ mf:action <bad-bom-only-1.ttl> ;
+ mf:name "bad-bom-only-1" .
+
+<#bad-bom-only-2>
+ a rdft:TestTurtleNegativeSyntax ;
+ mf:action <bad-bom-only-2.ttl> ;
+ mf:name "bad-bom-only-2" .
<#bad-char-in-local>
a rdft:TestTurtleNegativeSyntax ;
diff --git a/test/extra/good/manifest.ttl b/test/extra/good/manifest.ttl
index 5e7458ec..350d7d9c 100644
--- a/test/extra/good/manifest.ttl
+++ b/test/extra/good/manifest.ttl
@@ -30,6 +30,7 @@
<#test-list-subject>
<#test-local-name-ends-with-dot>
<#test-local-name-escapes>
+ <#test-local-name-percent>
<#test-long-utf8>
<#test-no-spaces>
<#test-non-curie-uri>
@@ -203,6 +204,12 @@
mf:name "test-local-name-escapes" ;
mf:result <test-local-name-escapes.nt> .
+<#test-local-name-percent>
+ a rdft:TestTurtleEval ;
+ mf:action <test-local-name-percent.ttl> ;
+ mf:name "test-local-name-percent" ;
+ mf:result <test-local-name-percent.nt> .
+
<#test-long-utf8>
a rdft:TestTurtleEval ;
mf:action <test-long-utf8.ttl> ;
diff --git a/test/extra/good/test-local-name-percent.nt b/test/extra/good/test-local-name-percent.nt
new file mode 100644
index 00000000..e6330547
--- /dev/null
+++ b/test/extra/good/test-local-name-percent.nt
@@ -0,0 +1,2 @@
+<http://example.org/s> <http://example.org/p> <http://example.org/o%3E> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o%3f> .
diff --git a/test/extra/good/test-local-name-percent.ttl b/test/extra/good/test-local-name-percent.ttl
new file mode 100644
index 00000000..32fb63d5
--- /dev/null
+++ b/test/extra/good/test-local-name-percent.ttl
@@ -0,0 +1,4 @@
+@prefix eg: <http://example.org/> .
+
+eg:s eg:p eg:o%3E .
+eg:s eg:p eg:o%3f .
diff --git a/test/extra/pretty/datatypes.ttl b/test/extra/pretty/datatypes.ttl
index 721dfe4d..8f8b13f2 100644
--- a/test/extra/pretty/datatypes.ttl
+++ b/test/extra/pretty/datatypes.ttl
@@ -9,6 +9,8 @@ eg:s
1 ,
2.3 ,
"4."^^xsd:decimal ,
+ "5"^^xsd:decimal ,
+ "6.7E8"^^xsd:float ,
false ,
true ,
"x"^^eg:datatype ,