aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bad
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-24 04:32:08 +0000
committerDavid Robillard <d@drobilla.net>2013-02-24 04:32:08 +0000
commitd3e093b153ec1cfb6ba82e4b0144cf59880326f3 (patch)
tree8aa7d2d436bf91b330b38f2c22e1b817f1e1dccd /tests/bad
parent541c97ad49dd8bb33297a14f422299328b7f4131 (diff)
downloadserd-d3e093b153ec1cfb6ba82e4b0144cf59880326f3.tar.gz
serd-d3e093b153ec1cfb6ba82e4b0144cf59880326f3.tar.bz2
serd-d3e093b153ec1cfb6ba82e4b0144cf59880326f3.zip
Restructure test suite to match new Turtle test suite.
git-svn-id: http://svn.drobilla.net/serd/trunk@412 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'tests/bad')
-rw-r--r--tests/bad/bad-00.ttl2
-rw-r--r--tests/bad/bad-01.ttl3
-rw-r--r--tests/bad/bad-02.ttl3
-rw-r--r--tests/bad/bad-03.ttl3
-rw-r--r--tests/bad/bad-04.ttl3
-rw-r--r--tests/bad/bad-05.ttl4
-rw-r--r--tests/bad/bad-06.ttl3
-rw-r--r--tests/bad/bad-07.ttl4
-rw-r--r--tests/bad/bad-08.ttl2
-rw-r--r--tests/bad/bad-09.ttl3
-rw-r--r--tests/bad/bad-10.ttl3
-rw-r--r--tests/bad/bad-11.ttl3
-rw-r--r--tests/bad/bad-12.ttl3
-rw-r--r--tests/bad/bad-13.ttl3
-rw-r--r--tests/bad/bad-14.ttl6
-rw-r--r--tests/bad/bad-base.ttl1
-rw-r--r--tests/bad/bad-blank.ttl3
-rw-r--r--tests/bad/bad-datatype.ttl1
-rw-r--r--tests/bad/bad-eof-in-blank.ttl3
-rw-r--r--tests/bad/bad-eof-in-escape.ttl3
-rw-r--r--tests/bad/bad-eof-in-lang-suffix.ttl3
-rw-r--r--tests/bad/bad-eof-in-lang.ttl3
-rw-r--r--tests/bad/bad-eof-in-list.ttl3
-rw-r--r--tests/bad/bad-eof-in-object-list.ttl2
-rw-r--r--tests/bad/bad-eof-in-object-list2.ttl2
-rw-r--r--tests/bad/bad-eof-in-predicate-list.ttl2
-rw-r--r--tests/bad/bad-eof-in-string.ttl3
-rw-r--r--tests/bad/bad-eof-in-triple-quote.ttl3
-rw-r--r--tests/bad/bad-eof-in-uri.ttl3
-rw-r--r--tests/bad/bad-escape.ttl1
-rw-r--r--tests/bad/bad-hex-digit.ttl1
-rw-r--r--tests/bad/bad-id-clash.ttl2
-rw-r--r--tests/bad/bad-lang.ttl1
-rw-r--r--tests/bad/bad-list.ttl1
-rw-r--r--tests/bad/bad-list2.ttl3
-rw-r--r--tests/bad/bad-namespace.ttl1
-rw-r--r--tests/bad/bad-ns.ttl1
-rw-r--r--tests/bad/bad-num.ttl1
-rw-r--r--tests/bad/bad-object.ttl3
-rw-r--r--tests/bad/bad-object2.ttl3
-rw-r--r--tests/bad/bad-prefix.ttl1
-rw-r--r--tests/bad/bad-string.ttl1
-rw-r--r--tests/bad/bad-uri-escape.ttl1
-rw-r--r--tests/bad/bad-verb.ttl2
44 files changed, 106 insertions, 0 deletions
diff --git a/tests/bad/bad-00.ttl b/tests/bad/bad-00.ttl
new file mode 100644
index 00000000..b1a1b361
--- /dev/null
+++ b/tests/bad/bad-00.ttl
@@ -0,0 +1,2 @@
+# prefix name must end in a :
+@prefix a <#> .
diff --git a/tests/bad/bad-01.ttl b/tests/bad/bad-01.ttl
new file mode 100644
index 00000000..533bc21d
--- /dev/null
+++ b/tests/bad/bad-01.ttl
@@ -0,0 +1,3 @@
+# Forbidden by RDF - predicate cannot be blank
+@prefix : <http://example.org/base#> .
+:a [ :b :c ] :d .
diff --git a/tests/bad/bad-02.ttl b/tests/bad/bad-02.ttl
new file mode 100644
index 00000000..fd2014d0
--- /dev/null
+++ b/tests/bad/bad-02.ttl
@@ -0,0 +1,3 @@
+# Forbidden by RDF - predicate cannot be blank
+@prefix : <http://example.org/base#> .
+:a [] :b .
diff --git a/tests/bad/bad-03.ttl b/tests/bad/bad-03.ttl
new file mode 100644
index 00000000..07a372f1
--- /dev/null
+++ b/tests/bad/bad-03.ttl
@@ -0,0 +1,3 @@
+# 'a' only allowed as a predicate
+@prefix : <http://example.org/base#> .
+a :a :b .
diff --git a/tests/bad/bad-04.ttl b/tests/bad/bad-04.ttl
new file mode 100644
index 00000000..ee7246c8
--- /dev/null
+++ b/tests/bad/bad-04.ttl
@@ -0,0 +1,3 @@
+# No comma is allowed in collections
+@prefix : <http://example.org/stuff/1.0/> .
+:a :b ( "apple", "banana" ) .
diff --git a/tests/bad/bad-05.ttl b/tests/bad/bad-05.ttl
new file mode 100644
index 00000000..387015fe
--- /dev/null
+++ b/tests/bad/bad-05.ttl
@@ -0,0 +1,4 @@
+# N3 {}s are not in Turtle
+@prefix : <http://example.org/stuff/1.0/> .
+{ :a :b :c . } :d :e .
+
diff --git a/tests/bad/bad-06.ttl b/tests/bad/bad-06.ttl
new file mode 100644
index 00000000..a8f1a0fc
--- /dev/null
+++ b/tests/bad/bad-06.ttl
@@ -0,0 +1,3 @@
+# is and of are not in turtle
+@prefix : <http://example.org/stuff/1.0/> .
+:a is :b of :c .
diff --git a/tests/bad/bad-07.ttl b/tests/bad/bad-07.ttl
new file mode 100644
index 00000000..18ea4fa6
--- /dev/null
+++ b/tests/bad/bad-07.ttl
@@ -0,0 +1,4 @@
+# paths are not in turtle
+@prefix : <http://example.org/stuff/1.0/> .
+:a.:b.:c .
+:a^:b^:c .
diff --git a/tests/bad/bad-08.ttl b/tests/bad/bad-08.ttl
new file mode 100644
index 00000000..07918f9a
--- /dev/null
+++ b/tests/bad/bad-08.ttl
@@ -0,0 +1,2 @@
+@keywords something.
+# @keywords is not in turtle
diff --git a/tests/bad/bad-09.ttl b/tests/bad/bad-09.ttl
new file mode 100644
index 00000000..d2d76c13
--- /dev/null
+++ b/tests/bad/bad-09.ttl
@@ -0,0 +1,3 @@
+# implies is not in turtle
+@prefix : <http://example.org/stuff/1.0/> .
+:a => :b .
diff --git a/tests/bad/bad-10.ttl b/tests/bad/bad-10.ttl
new file mode 100644
index 00000000..b5ef1f55
--- /dev/null
+++ b/tests/bad/bad-10.ttl
@@ -0,0 +1,3 @@
+# equivalence is not in turtle
+@prefix : <http://example.org/stuff/1.0/> .
+:a = :b .
diff --git a/tests/bad/bad-11.ttl b/tests/bad/bad-11.ttl
new file mode 100644
index 00000000..09e7b6a0
--- /dev/null
+++ b/tests/bad/bad-11.ttl
@@ -0,0 +1,3 @@
+# @forAll is not in turtle
+@prefix : <http://example.org/stuff/1.0/> .
+@forAll :x .
diff --git a/tests/bad/bad-12.ttl b/tests/bad/bad-12.ttl
new file mode 100644
index 00000000..cef48ff8
--- /dev/null
+++ b/tests/bad/bad-12.ttl
@@ -0,0 +1,3 @@
+# @forSome is not in turtle
+@prefix : <http://example.org/stuff/1.0/> .
+@forSome :x .
diff --git a/tests/bad/bad-13.ttl b/tests/bad/bad-13.ttl
new file mode 100644
index 00000000..91accf2b
--- /dev/null
+++ b/tests/bad/bad-13.ttl
@@ -0,0 +1,3 @@
+# <= is not in turtle
+@prefix : <http://example.org/stuff/1.0/> .
+:a <= :b .
diff --git a/tests/bad/bad-14.ttl b/tests/bad/bad-14.ttl
new file mode 100644
index 00000000..f4a7acf5
--- /dev/null
+++ b/tests/bad/bad-14.ttl
@@ -0,0 +1,6 @@
+# Test long literals with missing end
+@prefix : <http://example.org/ex#> .
+:a :b """a long
+ literal
+with
+newlines
diff --git a/tests/bad/bad-base.ttl b/tests/bad/bad-base.ttl
new file mode 100644
index 00000000..85421999
--- /dev/null
+++ b/tests/bad/bad-base.ttl
@@ -0,0 +1 @@
+@base "I'm quite certain this is not a URI" . \ No newline at end of file
diff --git a/tests/bad/bad-blank.ttl b/tests/bad/bad-blank.ttl
new file mode 100644
index 00000000..a6543f2d
--- /dev/null
+++ b/tests/bad/bad-blank.ttl
@@ -0,0 +1,3 @@
+@prefix eg: <http://example.org/> .
+
+_:.bad a eg:Thing . \ No newline at end of file
diff --git a/tests/bad/bad-datatype.ttl b/tests/bad/bad-datatype.ttl
new file mode 100644
index 00000000..0dd6018f
--- /dev/null
+++ b/tests/bad/bad-datatype.ttl
@@ -0,0 +1 @@
+<> <http://example.org/pred> "hello"^^"not-a-uri" . \ No newline at end of file
diff --git a/tests/bad/bad-eof-in-blank.ttl b/tests/bad/bad-eof-in-blank.ttl
new file mode 100644
index 00000000..08c13ae9
--- /dev/null
+++ b/tests/bad/bad-eof-in-blank.ttl
@@ -0,0 +1,3 @@
+@prefix eg: <http://example.org> .
+
+<> eg:thing [ eg:comment "Thing" \ No newline at end of file
diff --git a/tests/bad/bad-eof-in-escape.ttl b/tests/bad/bad-eof-in-escape.ttl
new file mode 100644
index 00000000..d3af9c93
--- /dev/null
+++ b/tests/bad/bad-eof-in-escape.ttl
@@ -0,0 +1,3 @@
+@prefix eg: <http://example.org> .
+
+<> eg:comment """\uA \ No newline at end of file
diff --git a/tests/bad/bad-eof-in-lang-suffix.ttl b/tests/bad/bad-eof-in-lang-suffix.ttl
new file mode 100644
index 00000000..8e3002cb
--- /dev/null
+++ b/tests/bad/bad-eof-in-lang-suffix.ttl
@@ -0,0 +1,3 @@
+@prefix eg: <http://example.org> .
+
+<> eg:comment "That ain't no language"@en-x \ No newline at end of file
diff --git a/tests/bad/bad-eof-in-lang.ttl b/tests/bad/bad-eof-in-lang.ttl
new file mode 100644
index 00000000..54db417f
--- /dev/null
+++ b/tests/bad/bad-eof-in-lang.ttl
@@ -0,0 +1,3 @@
+@prefix eg: <http://example.org> .
+
+<> eg:comment "That ain't no language"@a \ No newline at end of file
diff --git a/tests/bad/bad-eof-in-list.ttl b/tests/bad/bad-eof-in-list.ttl
new file mode 100644
index 00000000..ca6c352f
--- /dev/null
+++ b/tests/bad/bad-eof-in-list.ttl
@@ -0,0 +1,3 @@
+@prefix eg: <http://example.org> .
+
+<> eg:thing ( eg:car eg:cdr \ No newline at end of file
diff --git a/tests/bad/bad-eof-in-object-list.ttl b/tests/bad/bad-eof-in-object-list.ttl
new file mode 100644
index 00000000..9bbcd17a
--- /dev/null
+++ b/tests/bad/bad-eof-in-object-list.ttl
@@ -0,0 +1,2 @@
+@prefix eg: <http://example.org/> .
+<> eg:p eg:o , \ No newline at end of file
diff --git a/tests/bad/bad-eof-in-object-list2.ttl b/tests/bad/bad-eof-in-object-list2.ttl
new file mode 100644
index 00000000..9186fb9f
--- /dev/null
+++ b/tests/bad/bad-eof-in-object-list2.ttl
@@ -0,0 +1,2 @@
+@prefix eg: <http://example.org/> .
+<> eg:p eg:o ; eg:p1 eg:o2 , \ No newline at end of file
diff --git a/tests/bad/bad-eof-in-predicate-list.ttl b/tests/bad/bad-eof-in-predicate-list.ttl
new file mode 100644
index 00000000..eab5b05b
--- /dev/null
+++ b/tests/bad/bad-eof-in-predicate-list.ttl
@@ -0,0 +1,2 @@
+@prefix eg: <http://example.org/> .
+<> eg:p eg:o ; \ No newline at end of file
diff --git a/tests/bad/bad-eof-in-string.ttl b/tests/bad/bad-eof-in-string.ttl
new file mode 100644
index 00000000..d3a1aa55
--- /dev/null
+++ b/tests/bad/bad-eof-in-string.ttl
@@ -0,0 +1,3 @@
+@prefix eg: <http://example.org> .
+
+<> eg:comment "This is the string that never ends \ No newline at end of file
diff --git a/tests/bad/bad-eof-in-triple-quote.ttl b/tests/bad/bad-eof-in-triple-quote.ttl
new file mode 100644
index 00000000..d60acd15
--- /dev/null
+++ b/tests/bad/bad-eof-in-triple-quote.ttl
@@ -0,0 +1,3 @@
+@prefix eg: <http://example.org> .
+
+<> eg:comment """Hello"" \ No newline at end of file
diff --git a/tests/bad/bad-eof-in-uri.ttl b/tests/bad/bad-eof-in-uri.ttl
new file mode 100644
index 00000000..9bd2a64d
--- /dev/null
+++ b/tests/bad/bad-eof-in-uri.ttl
@@ -0,0 +1,3 @@
+@prefix eg: <http://example.org> .
+
+<> eg:uri <http://example.org/dontstop \ No newline at end of file
diff --git a/tests/bad/bad-escape.ttl b/tests/bad/bad-escape.ttl
new file mode 100644
index 00000000..c03f395f
--- /dev/null
+++ b/tests/bad/bad-escape.ttl
@@ -0,0 +1 @@
+<http://example.org/thing> <http://example.org/comment> """\!""" .
diff --git a/tests/bad/bad-hex-digit.ttl b/tests/bad/bad-hex-digit.ttl
new file mode 100644
index 00000000..85816ced
--- /dev/null
+++ b/tests/bad/bad-hex-digit.ttl
@@ -0,0 +1 @@
+<http://example.org/thing> <http://example.org/comment> "\uABCG" .
diff --git a/tests/bad/bad-id-clash.ttl b/tests/bad/bad-id-clash.ttl
new file mode 100644
index 00000000..55ab23e3
--- /dev/null
+++ b/tests/bad/bad-id-clash.ttl
@@ -0,0 +1,2 @@
+_:genid1 a _:genid2 .
+_:genid2 a _:docid1 . \ No newline at end of file
diff --git a/tests/bad/bad-lang.ttl b/tests/bad/bad-lang.ttl
new file mode 100644
index 00000000..01e04328
--- /dev/null
+++ b/tests/bad/bad-lang.ttl
@@ -0,0 +1 @@
+<> <http://example.org/pred> "hello"@\bad . \ No newline at end of file
diff --git a/tests/bad/bad-list.ttl b/tests/bad/bad-list.ttl
new file mode 100644
index 00000000..5606658e
--- /dev/null
+++ b/tests/bad/bad-list.ttl
@@ -0,0 +1 @@
+<> <http://example.org/pred> <http://example.org/valid> , invalid . \ No newline at end of file
diff --git a/tests/bad/bad-list2.ttl b/tests/bad/bad-list2.ttl
new file mode 100644
index 00000000..b5242de2
--- /dev/null
+++ b/tests/bad/bad-list2.ttl
@@ -0,0 +1,3 @@
+@prefix eg: <http://example.org> .
+
+<> eg:thing ( . \ No newline at end of file
diff --git a/tests/bad/bad-namespace.ttl b/tests/bad/bad-namespace.ttl
new file mode 100644
index 00000000..0dd78d33
--- /dev/null
+++ b/tests/bad/bad-namespace.ttl
@@ -0,0 +1 @@
+@prefix eg: "what?" . \ No newline at end of file
diff --git a/tests/bad/bad-ns.ttl b/tests/bad/bad-ns.ttl
new file mode 100644
index 00000000..4410573e
--- /dev/null
+++ b/tests/bad/bad-ns.ttl
@@ -0,0 +1 @@
+<> a badprefix:Thing . \ No newline at end of file
diff --git a/tests/bad/bad-num.ttl b/tests/bad/bad-num.ttl
new file mode 100644
index 00000000..7685f0e0
--- /dev/null
+++ b/tests/bad/bad-num.ttl
@@ -0,0 +1 @@
+<> <http://example.org/pred> .hello . \ No newline at end of file
diff --git a/tests/bad/bad-object.ttl b/tests/bad/bad-object.ttl
new file mode 100644
index 00000000..9fc6da18
--- /dev/null
+++ b/tests/bad/bad-object.ttl
@@ -0,0 +1,3 @@
+@prefix eg: <http://example.org/> .
+
+eg:thing a four .
diff --git a/tests/bad/bad-object2.ttl b/tests/bad/bad-object2.ttl
new file mode 100644
index 00000000..9293d168
--- /dev/null
+++ b/tests/bad/bad-object2.ttl
@@ -0,0 +1,3 @@
+@prefix eg: <http://example.org/> .
+
+eg:thing a fives .
diff --git a/tests/bad/bad-prefix.ttl b/tests/bad/bad-prefix.ttl
new file mode 100644
index 00000000..6c286355
--- /dev/null
+++ b/tests/bad/bad-prefix.ttl
@@ -0,0 +1 @@
+@prefix _invalid <http://example.org/> .
diff --git a/tests/bad/bad-string.ttl b/tests/bad/bad-string.ttl
new file mode 100644
index 00000000..0bdea42c
--- /dev/null
+++ b/tests/bad/bad-string.ttl
@@ -0,0 +1 @@
+<> <http://example.org/pred> "hello \ No newline at end of file
diff --git a/tests/bad/bad-uri-escape.ttl b/tests/bad/bad-uri-escape.ttl
new file mode 100644
index 00000000..16c63754
--- /dev/null
+++ b/tests/bad/bad-uri-escape.ttl
@@ -0,0 +1 @@
+<http://example.org/thing> <http://example.org/comment> <http://example.org/\!> .
diff --git a/tests/bad/bad-verb.ttl b/tests/bad/bad-verb.ttl
new file mode 100644
index 00000000..56a134f3
--- /dev/null
+++ b/tests/bad/bad-verb.ttl
@@ -0,0 +1,2 @@
+@prefix a: <http://example.org/> .
+a:thing x a:Thing . \ No newline at end of file