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/bad-prefix-dot.ttl1
-rw-r--r--test/extra/bad/manifest.ttl34
-rw-r--r--test/extra/good/manifest.ttl52
-rw-r--r--test/extra/good/test-local-name-ends-with-dot.nt1
-rw-r--r--test/extra/good/test-local-name-escapes.nt17
-rw-r--r--test/extra/good/test-local-name-escapes.ttl19
-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/lax/manifest.ttl28
-rw-r--r--test/extra/lax/test-bad-string.trig3
-rw-r--r--test/extra/lax/test-bad-uri.trig8
-rw-r--r--test/extra/lax/test-bad-utf8.trig6
-rw-r--r--test/extra/lax/test-out-of-range-unicode.nt (renamed from test/extra/good/test-out-of-range-unicode.nt)0
-rw-r--r--test/extra/lax/test-out-of-range-unicode.ttl (renamed from test/extra/good/test-out-of-range-unicode.ttl)0
-rw-r--r--test/extra/pretty/datatypes.ttl2
-rw-r--r--test/extra/pretty/named-graph.trig16
20 files changed, 180 insertions, 21 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/bad-prefix-dot.ttl b/test/extra/bad/bad-prefix-dot.ttl
new file mode 100644
index 00000000..7b02211f
--- /dev/null
+++ b/test/extra/bad/bad-prefix-dot.ttl
@@ -0,0 +1 @@
+@prefix dotted.: <http://example.org/> .
diff --git a/test/extra/bad/manifest.ttl b/test/extra/bad/manifest.ttl
index 6b6df540..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>
@@ -113,8 +116,9 @@
<#bad-object2>
<#bad-paths>
<#bad-pn-escape>
- <#bad-prefix-missing-colon>
<#bad-prefix>
+ <#bad-prefix-dot>
+ <#bad-prefix-missing-colon>
<#bad-quote-in-uri>
<#bad-semicolon-after-subject>
<#bad-string>
@@ -164,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-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.ttl> ;
- mf:name "bad-bom" .
+ mf:action <bad-bom-only-2.ttl> ;
+ mf:name "bad-bom-only-2" .
<#bad-char-in-local>
a rdft:TestTurtleNegativeSyntax ;
@@ -669,6 +688,11 @@
mf:action <bad-prefix.ttl> ;
mf:name "bad-prefix" .
+<#bad-prefix-dot>
+ a rdft:TestTurtleNegativeSyntax ;
+ mf:action <bad-prefix-dot.ttl> ;
+ mf:name "bad-prefix-dot" .
+
<#bad-prefix-missing-colon>
a rdft:TestTurtleNegativeSyntax ;
mf:action <bad-prefix-missing-colon.ttl> ;
diff --git a/test/extra/good/manifest.ttl b/test/extra/good/manifest.ttl
index befe9451..350d7d9c 100644
--- a/test/extra/good/manifest.ttl
+++ b/test/extra/good/manifest.ttl
@@ -28,12 +28,15 @@
<#test-id>
<#test-list-in-blank>
<#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>
<#test-nq-syntax-all-rules>
<#test-nq-syntax-dot-end>
- <#test-nq-syntax-eof-after-blank-dot>
+ <#test-nt-syntax-all-rules>
<#test-nq-syntax-eol-cr>
<#test-nq-syntax-eol-crlf>
<#test-nq-syntax-eol-lf>
@@ -46,13 +49,14 @@
<#test-nt-syntax-eol-crlf>
<#test-nt-syntax-eol-lf>
<#test-nt-syntax-eol-lfcr>
- <#test-out-of-range-unicode>
<#test-prefix>
<#test-quote-escapes>
<#test-rel>
<#test-semi-dot>
<#test-several-eaten-dots>
<#test-string-escapes>
+ <#test-trig-syntax-all-rules>
+ <#test-ttl-syntax-all-rules>
<#test-uri>
) .
@@ -188,6 +192,24 @@
mf:name "test-list-subject" ;
mf:result <test-list-subject.nt> .
+<#test-local-name-ends-with-dot>
+ a rdft:TestTurtleEval ;
+ mf:action <test-local-name-ends-with-dot.ttl> ;
+ mf:name "test-local-name-ends-with-dot" ;
+ mf:result <test-local-name-ends-with-dot.nt> .
+
+<#test-local-name-escapes>
+ a rdft:TestTurtleEval ;
+ mf:action <test-local-name-escapes.ttl> ;
+ 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> ;
@@ -206,11 +228,6 @@
mf:name "test-non-curie-uri" ;
mf:result <test-non-curie-uri.nt> .
-<#test-nq-syntax-eof-after-blank-dot>
- a rdft:TestNTriplesPositiveSyntax ;
- mf:action <test-nq-syntax-eof-after-blank-dot.nq> ;
- mf:name "test-nq-syntax-eof-after-blank-dot" .
-
<#test-nq-syntax-all-rules>
a rdft:TestNQuadsPositiveSyntax ;
mf:action <test-nq-syntax-all-rules.nq> ;
@@ -221,6 +238,11 @@
mf:action <test-nq-syntax-dot-end.nq> ;
mf:name "test-nq-syntax-dot-end" .
+<#test-nq-syntax-eof-after-blank-dot>
+ a rdft:TestNTriplesPositiveSyntax ;
+ mf:action <test-nq-syntax-eof-after-blank-dot.nq> ;
+ mf:name "test-nq-syntax-eof-after-blank-dot" .
+
<#test-nq-syntax-eol-cr>
a rdft:TestNTriplesPositiveSyntax ;
mf:action <test-nq-syntax-eol-cr.nq> ;
@@ -281,12 +303,6 @@
mf:action <test-nt-syntax-eol-lfcr.nt> ;
mf:name "test-nt-syntax-eol-lfcr" .
-<#test-out-of-range-unicode>
- a rdft:TestTurtleEval ;
- mf:action <test-out-of-range-unicode.ttl> ;
- mf:name "test-out-of-range-unicode" ;
- mf:result <test-out-of-range-unicode.nt> .
-
<#test-prefix>
a rdft:TestTurtleEval ;
mf:action <test-prefix.ttl> ;
@@ -323,6 +339,16 @@
mf:name "test-string-escapes" ;
mf:result <test-string-escapes.nt> .
+<#test-trig-syntax-all-rules>
+ a rdft:TestTrigPositiveSyntax ;
+ mf:action <test-trig-syntax-all-rules.trig> ;
+ mf:name "test-trig-syntax-all-rules" .
+
+<#test-ttl-syntax-all-rules>
+ a rdft:TestTurtlePositiveSyntax ;
+ mf:action <test-ttl-syntax-all-rules.ttl> ;
+ mf:name "test-ttl-syntax-all-rules" .
+
<#test-uri>
a rdft:TestTurtleEval ;
mf:action <test-uri.ttl> ;
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 @@
+<http://example.org/eg#s> <http://example.org/eg#p> <http://example.org/eg#foo.> .
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 @@
+<http://example.org/s> <http://example.org/p> <http://example.org/o'> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o!> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o#> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o$> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o%> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o&> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o(> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o)> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o*> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o+> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o,> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o/> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o;> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o=> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o?> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o@> .
+<http://example.org/s> <http://example.org/p> <http://example.org/o~> .
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: <http://example.org/> .
+
+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\~ .
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/lax/manifest.ttl b/test/extra/lax/manifest.ttl
index b9890e14..f79e1984 100644
--- a/test/extra/lax/manifest.ttl
+++ b/test/extra/lax/manifest.ttl
@@ -8,14 +8,18 @@
mf:entries (
<#test-bad-string-nq>
<#test-bad-string-nt>
+ <#test-bad-string-trig>
<#test-bad-string-ttl>
<#test-bad-uri-nq>
<#test-bad-uri-nt>
<#test-bad-uri-ttl>
+ <#test-bad-uri-trig>
<#test-bad-utf8-nq>
<#test-bad-utf8-nt>
<#test-bad-utf8-ttl>
+ <#test-bad-utf8-trig>
<#test-lone-list>
+ <#test-out-of-range-unicode>
) .
<#test-bad-string-nq>
@@ -36,6 +40,12 @@
mf:name "test-bad-string-ttl" ;
mf:result <test-bad-string-out.nt> .
+<#test-bad-string-trig>
+ a rdft:TestTrigNegativeSyntax ;
+ mf:action <test-bad-string.trig> ;
+ mf:name "test-bad-string-trig" ;
+ mf:result <test-bad-string-out.nt> .
+
<#test-bad-uri-nq>
a rdft:TestNQuadsNegativeSyntax ;
mf:action <test-bad-uri.nq> ;
@@ -54,6 +64,12 @@
mf:name "test-bad-uri-ttl" ;
mf:result <test-bad-uri-out.nt> .
+<#test-bad-uri-trig>
+ a rdft:TestTurtleNegativeSyntax ;
+ mf:action <test-bad-uri.trig> ;
+ mf:name "test-bad-uri-trig" ;
+ mf:result <test-bad-uri-nq-out.nq> .
+
<#test-bad-utf8-nq>
a rdft:TestNQuadsNegativeSyntax ;
mf:action <test-bad-utf8.nq> ;
@@ -72,8 +88,20 @@
mf:name "test-bad-utf8-ttl" ;
mf:result <test-bad-utf8-ttl-out.nt> .
+<#test-bad-utf8-trig>
+ a rdft:TestTurtleNegativeSyntax ;
+ mf:action <test-bad-utf8.trig> ;
+ mf:name "test-bad-utf8-trig" ;
+ mf:result <test-bad-utf8-ttl-out.nt> .
+
<#test-lone-list>
a rdft:TestTurtleNegativeSyntax ;
mf:action <test-lone-list.ttl> ;
mf:name "test-lone-list" ;
mf:result <test-lone-list.nt> .
+
+<#test-out-of-range-unicode>
+ a rdft:TestTurtleNegativeSyntax ;
+ mf:action <test-out-of-range-unicode.ttl> ;
+ mf:name "test-out-of-range-unicode" ;
+ mf:result <test-out-of-range-unicode.nt> .
diff --git a/test/extra/lax/test-bad-string.trig b/test/extra/lax/test-bad-string.trig
new file mode 100644
index 00000000..72eb9621
--- /dev/null
+++ b/test/extra/lax/test-bad-string.trig
@@ -0,0 +1,3 @@
+<http://example.org/s1> <http://example.org/p1> "Truncated line
+<http://example.org/s1> <http://example.org/p1> "Bad escape \? " .
+<http://example.org/s1> <http://example.org/p2> "Good" .
diff --git a/test/extra/lax/test-bad-uri.trig b/test/extra/lax/test-bad-uri.trig
new file mode 100644
index 00000000..ba852fef
--- /dev/null
+++ b/test/extra/lax/test-bad-uri.trig
@@ -0,0 +1,8 @@
+<http://example.org/ÿÿbadg1> {
+ <http://example.org/s> <http://example.org/p> <http://example.org/goodo1>
+}
+
+<http://example.org/s>
+ <http://example.org/p> <http://example.org/ bado1> ;
+ <http://example.org/p> <http://example.org/ÿÿbado2> ;
+ <http://example.org/p> <http://example.org/goodo2> .
diff --git a/test/extra/lax/test-bad-utf8.trig b/test/extra/lax/test-bad-utf8.trig
new file mode 100644
index 00000000..0e177366
--- /dev/null
+++ b/test/extra/lax/test-bad-utf8.trig
@@ -0,0 +1,6 @@
+<http://example.org/s> <http://example.org/p> "Impossible bytes: þ ÿ" .
+<http://example.org/s> <http://example.org/p> "2 continuation bytes: €¿" .
+<http://example.org/s> <http://example.org/p> "Missing continuation: À" .
+<http://example.org/s> <http://example.org/p> """Impossible bytes: þ ÿ""" .
+<http://example.org/s> <http://example.org/p> """2 continuation bytes: €¿""" .
+<http://example.org/s> <http://example.org/p> """Missing continuation: À""" .
diff --git a/test/extra/good/test-out-of-range-unicode.nt b/test/extra/lax/test-out-of-range-unicode.nt
index 5def9e31..5def9e31 100644
--- a/test/extra/good/test-out-of-range-unicode.nt
+++ b/test/extra/lax/test-out-of-range-unicode.nt
diff --git a/test/extra/good/test-out-of-range-unicode.ttl b/test/extra/lax/test-out-of-range-unicode.ttl
index 7e64785a..7e64785a 100644
--- a/test/extra/good/test-out-of-range-unicode.ttl
+++ b/test/extra/lax/test-out-of-range-unicode.ttl
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 ,
diff --git a/test/extra/pretty/named-graph.trig b/test/extra/pretty/named-graph.trig
index 5cd12f3b..29f1d970 100644
--- a/test/extra/pretty/named-graph.trig
+++ b/test/extra/pretty/named-graph.trig
@@ -1,8 +1,18 @@
@prefix eg: <http://example.org/> .
-eg:g {
- eg:s
- eg:p [
+eg:g1 {
+ eg:s1
+ eg:p1 [
a eg:Object
] .
}
+
+eg:g2 {
+ eg:s2
+ eg:p2 [
+ a eg:Object
+ ] .
+}
+
+eg:s3
+ eg:p3 eg:o3 .