From 08a09191dd69e66aa56822383e84fe034d59dd3f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 Apr 2023 09:00:12 -0400 Subject: Separate test suites and simplify licensing metadata --- test/extra/bad/bad-00.ttl | 2 + test/extra/bad/bad-01.ttl | 3 + test/extra/bad/bad-02.ttl | 3 + test/extra/bad/bad-03.ttl | 3 + test/extra/bad/bad-04.ttl | 3 + test/extra/bad/bad-05.ttl | 4 + test/extra/bad/bad-06.ttl | 3 + test/extra/bad/bad-07.ttl | 4 + test/extra/bad/bad-08.ttl | 2 + test/extra/bad/bad-09.ttl | 3 + test/extra/bad/bad-10.ttl | 3 + test/extra/bad/bad-11.ttl | 3 + test/extra/bad/bad-12.ttl | 3 + test/extra/bad/bad-13.ttl | 3 + test/extra/bad/bad-14.ttl | 6 + test/extra/bad/bad-base.ttl | 1 + test/extra/bad/bad-blank-syntax.ttl | 1 + test/extra/bad/bad-blank.ttl | 3 + test/extra/bad/bad-bom.ttl | 3 + test/extra/bad/bad-char-in-local.ttl | 3 + test/extra/bad/bad-char-in-prefix.ttl | 1 + test/extra/bad/bad-char-in-uri.ttl | 1 + test/extra/bad/bad-datatype-syntax.ttl | 1 + test/extra/bad/bad-datatype.ttl | 1 + test/extra/bad/bad-dot-after-subject.ttl | 1 + test/extra/bad/bad-dot-in-collection.ttl | 1 + test/extra/bad/bad-eof-after-quotes.ttl | 3 + test/extra/bad/bad-eof-at-string-start.ttl | 3 + test/extra/bad/bad-eof-in-blank.ttl | 3 + test/extra/bad/bad-eof-in-escape.ttl | 3 + test/extra/bad/bad-eof-in-lang-suffix.ttl | 3 + test/extra/bad/bad-eof-in-lang.ttl | 3 + test/extra/bad/bad-eof-in-list.ttl | 3 + test/extra/bad/bad-eof-in-long-string.ttl | 3 + test/extra/bad/bad-eof-in-object-list.ttl | 2 + test/extra/bad/bad-eof-in-object-list2.ttl | 2 + test/extra/bad/bad-eof-in-predicate-list.ttl | 2 + test/extra/bad/bad-eof-in-string.ttl | 3 + test/extra/bad/bad-eof-in-triple-quote.ttl | 3 + test/extra/bad/bad-eof-in-uri-scheme.nt | 1 + test/extra/bad/bad-eof-in-uri.ttl | 3 + test/extra/bad/bad-escape.ttl | 1 + test/extra/bad/bad-ext-namedblank-op.ttl | 3 + test/extra/bad/bad-graph-blank-label.trig | 3 + test/extra/bad/bad-hex-digit.ttl | 1 + test/extra/bad/bad-id-clash.ttl | 2 + test/extra/bad/bad-lang.ttl | 1 + test/extra/bad/bad-list.ttl | 1 + test/extra/bad/bad-list2.ttl | 3 + test/extra/bad/bad-long-literal-in-list.ttl | 1 + test/extra/bad/bad-missing-semi.ttl | 3 + test/extra/bad/bad-missing-uri-scheme.nt | 1 + test/extra/bad/bad-misspelled-base.ttl | 1 + test/extra/bad/bad-misspelled-prefix.ttl | 1 + test/extra/bad/bad-namespace.ttl | 1 + test/extra/bad/bad-ns.ttl | 1 + test/extra/bad/bad-null-byte.ttl | Bin 0 -> 27 bytes test/extra/bad/bad-num.ttl | 1 + test/extra/bad/bad-object.ttl | 3 + test/extra/bad/bad-object2.ttl | 3 + test/extra/bad/bad-pn-escape.ttl | 2 + test/extra/bad/bad-prefix.ttl | 1 + test/extra/bad/bad-quote-in-uri.ttl | 1 + test/extra/bad/bad-semicolon-after-subject.ttl | 1 + test/extra/bad/bad-string.ttl | 1 + test/extra/bad/bad-subject.ttl | 1 + test/extra/bad/bad-uri-escape.ttl | 1 + test/extra/bad/bad-uri-scheme-start.nt | 1 + test/extra/bad/bad-uri-scheme.nt | 1 + test/extra/bad/bad-uri-truncated.nt | 1 + test/extra/bad/bad-verb.ttl | 2 + test/extra/bad/invalid-char-in-local.ttl | 3 + test/extra/bad/invalid-char-in-prefix.ttl | 1 + test/extra/bad/manifest.ttl | 449 +++++++++++++++++++++++++ 74 files changed, 602 insertions(+) create mode 100644 test/extra/bad/bad-00.ttl create mode 100644 test/extra/bad/bad-01.ttl create mode 100644 test/extra/bad/bad-02.ttl create mode 100644 test/extra/bad/bad-03.ttl create mode 100644 test/extra/bad/bad-04.ttl create mode 100644 test/extra/bad/bad-05.ttl create mode 100644 test/extra/bad/bad-06.ttl create mode 100644 test/extra/bad/bad-07.ttl create mode 100644 test/extra/bad/bad-08.ttl create mode 100644 test/extra/bad/bad-09.ttl create mode 100644 test/extra/bad/bad-10.ttl create mode 100644 test/extra/bad/bad-11.ttl create mode 100644 test/extra/bad/bad-12.ttl create mode 100644 test/extra/bad/bad-13.ttl create mode 100644 test/extra/bad/bad-14.ttl create mode 100644 test/extra/bad/bad-base.ttl create mode 100644 test/extra/bad/bad-blank-syntax.ttl create mode 100644 test/extra/bad/bad-blank.ttl create mode 100644 test/extra/bad/bad-bom.ttl create mode 100644 test/extra/bad/bad-char-in-local.ttl create mode 100644 test/extra/bad/bad-char-in-prefix.ttl create mode 100644 test/extra/bad/bad-char-in-uri.ttl create mode 100644 test/extra/bad/bad-datatype-syntax.ttl create mode 100644 test/extra/bad/bad-datatype.ttl create mode 100644 test/extra/bad/bad-dot-after-subject.ttl create mode 100644 test/extra/bad/bad-dot-in-collection.ttl create mode 100644 test/extra/bad/bad-eof-after-quotes.ttl create mode 100644 test/extra/bad/bad-eof-at-string-start.ttl create mode 100644 test/extra/bad/bad-eof-in-blank.ttl create mode 100644 test/extra/bad/bad-eof-in-escape.ttl create mode 100644 test/extra/bad/bad-eof-in-lang-suffix.ttl create mode 100644 test/extra/bad/bad-eof-in-lang.ttl create mode 100644 test/extra/bad/bad-eof-in-list.ttl create mode 100644 test/extra/bad/bad-eof-in-long-string.ttl create mode 100644 test/extra/bad/bad-eof-in-object-list.ttl create mode 100644 test/extra/bad/bad-eof-in-object-list2.ttl create mode 100644 test/extra/bad/bad-eof-in-predicate-list.ttl create mode 100644 test/extra/bad/bad-eof-in-string.ttl create mode 100644 test/extra/bad/bad-eof-in-triple-quote.ttl create mode 100644 test/extra/bad/bad-eof-in-uri-scheme.nt create mode 100644 test/extra/bad/bad-eof-in-uri.ttl create mode 100644 test/extra/bad/bad-escape.ttl create mode 100644 test/extra/bad/bad-ext-namedblank-op.ttl create mode 100644 test/extra/bad/bad-graph-blank-label.trig create mode 100644 test/extra/bad/bad-hex-digit.ttl create mode 100644 test/extra/bad/bad-id-clash.ttl create mode 100644 test/extra/bad/bad-lang.ttl create mode 100644 test/extra/bad/bad-list.ttl create mode 100644 test/extra/bad/bad-list2.ttl create mode 100644 test/extra/bad/bad-long-literal-in-list.ttl create mode 100644 test/extra/bad/bad-missing-semi.ttl create mode 100644 test/extra/bad/bad-missing-uri-scheme.nt create mode 100644 test/extra/bad/bad-misspelled-base.ttl create mode 100644 test/extra/bad/bad-misspelled-prefix.ttl create mode 100644 test/extra/bad/bad-namespace.ttl create mode 100644 test/extra/bad/bad-ns.ttl create mode 100644 test/extra/bad/bad-null-byte.ttl create mode 100644 test/extra/bad/bad-num.ttl create mode 100644 test/extra/bad/bad-object.ttl create mode 100644 test/extra/bad/bad-object2.ttl create mode 100644 test/extra/bad/bad-pn-escape.ttl create mode 100644 test/extra/bad/bad-prefix.ttl create mode 100644 test/extra/bad/bad-quote-in-uri.ttl create mode 100644 test/extra/bad/bad-semicolon-after-subject.ttl create mode 100644 test/extra/bad/bad-string.ttl create mode 100644 test/extra/bad/bad-subject.ttl create mode 100644 test/extra/bad/bad-uri-escape.ttl create mode 100644 test/extra/bad/bad-uri-scheme-start.nt create mode 100644 test/extra/bad/bad-uri-scheme.nt create mode 100644 test/extra/bad/bad-uri-truncated.nt create mode 100644 test/extra/bad/bad-verb.ttl create mode 100644 test/extra/bad/invalid-char-in-local.ttl create mode 100644 test/extra/bad/invalid-char-in-prefix.ttl create mode 100644 test/extra/bad/manifest.ttl (limited to 'test/extra/bad') diff --git a/test/extra/bad/bad-00.ttl b/test/extra/bad/bad-00.ttl new file mode 100644 index 00000000..b1a1b361 --- /dev/null +++ b/test/extra/bad/bad-00.ttl @@ -0,0 +1,2 @@ +# prefix name must end in a : +@prefix a <#> . diff --git a/test/extra/bad/bad-01.ttl b/test/extra/bad/bad-01.ttl new file mode 100644 index 00000000..533bc21d --- /dev/null +++ b/test/extra/bad/bad-01.ttl @@ -0,0 +1,3 @@ +# Forbidden by RDF - predicate cannot be blank +@prefix : . +:a [ :b :c ] :d . diff --git a/test/extra/bad/bad-02.ttl b/test/extra/bad/bad-02.ttl new file mode 100644 index 00000000..fd2014d0 --- /dev/null +++ b/test/extra/bad/bad-02.ttl @@ -0,0 +1,3 @@ +# Forbidden by RDF - predicate cannot be blank +@prefix : . +:a [] :b . diff --git a/test/extra/bad/bad-03.ttl b/test/extra/bad/bad-03.ttl new file mode 100644 index 00000000..07a372f1 --- /dev/null +++ b/test/extra/bad/bad-03.ttl @@ -0,0 +1,3 @@ +# 'a' only allowed as a predicate +@prefix : . +a :a :b . diff --git a/test/extra/bad/bad-04.ttl b/test/extra/bad/bad-04.ttl new file mode 100644 index 00000000..ee7246c8 --- /dev/null +++ b/test/extra/bad/bad-04.ttl @@ -0,0 +1,3 @@ +# No comma is allowed in collections +@prefix : . +:a :b ( "apple", "banana" ) . diff --git a/test/extra/bad/bad-05.ttl b/test/extra/bad/bad-05.ttl new file mode 100644 index 00000000..387015fe --- /dev/null +++ b/test/extra/bad/bad-05.ttl @@ -0,0 +1,4 @@ +# N3 {}s are not in Turtle +@prefix : . +{ :a :b :c . } :d :e . + diff --git a/test/extra/bad/bad-06.ttl b/test/extra/bad/bad-06.ttl new file mode 100644 index 00000000..a8f1a0fc --- /dev/null +++ b/test/extra/bad/bad-06.ttl @@ -0,0 +1,3 @@ +# is and of are not in turtle +@prefix : . +:a is :b of :c . diff --git a/test/extra/bad/bad-07.ttl b/test/extra/bad/bad-07.ttl new file mode 100644 index 00000000..18ea4fa6 --- /dev/null +++ b/test/extra/bad/bad-07.ttl @@ -0,0 +1,4 @@ +# paths are not in turtle +@prefix : . +:a.:b.:c . +:a^:b^:c . diff --git a/test/extra/bad/bad-08.ttl b/test/extra/bad/bad-08.ttl new file mode 100644 index 00000000..07918f9a --- /dev/null +++ b/test/extra/bad/bad-08.ttl @@ -0,0 +1,2 @@ +@keywords something. +# @keywords is not in turtle diff --git a/test/extra/bad/bad-09.ttl b/test/extra/bad/bad-09.ttl new file mode 100644 index 00000000..d2d76c13 --- /dev/null +++ b/test/extra/bad/bad-09.ttl @@ -0,0 +1,3 @@ +# implies is not in turtle +@prefix : . +:a => :b . diff --git a/test/extra/bad/bad-10.ttl b/test/extra/bad/bad-10.ttl new file mode 100644 index 00000000..b5ef1f55 --- /dev/null +++ b/test/extra/bad/bad-10.ttl @@ -0,0 +1,3 @@ +# equivalence is not in turtle +@prefix : . +:a = :b . diff --git a/test/extra/bad/bad-11.ttl b/test/extra/bad/bad-11.ttl new file mode 100644 index 00000000..09e7b6a0 --- /dev/null +++ b/test/extra/bad/bad-11.ttl @@ -0,0 +1,3 @@ +# @forAll is not in turtle +@prefix : . +@forAll :x . diff --git a/test/extra/bad/bad-12.ttl b/test/extra/bad/bad-12.ttl new file mode 100644 index 00000000..cef48ff8 --- /dev/null +++ b/test/extra/bad/bad-12.ttl @@ -0,0 +1,3 @@ +# @forSome is not in turtle +@prefix : . +@forSome :x . diff --git a/test/extra/bad/bad-13.ttl b/test/extra/bad/bad-13.ttl new file mode 100644 index 00000000..91accf2b --- /dev/null +++ b/test/extra/bad/bad-13.ttl @@ -0,0 +1,3 @@ +# <= is not in turtle +@prefix : . +:a <= :b . diff --git a/test/extra/bad/bad-14.ttl b/test/extra/bad/bad-14.ttl new file mode 100644 index 00000000..f4a7acf5 --- /dev/null +++ b/test/extra/bad/bad-14.ttl @@ -0,0 +1,6 @@ +# Test long literals with missing end +@prefix : . +:a :b """a long + literal +with +newlines diff --git a/test/extra/bad/bad-base.ttl b/test/extra/bad/bad-base.ttl new file mode 100644 index 00000000..85421999 --- /dev/null +++ b/test/extra/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/test/extra/bad/bad-blank-syntax.ttl b/test/extra/bad/bad-blank-syntax.ttl new file mode 100644 index 00000000..6c7117a2 --- /dev/null +++ b/test/extra/bad/bad-blank-syntax.ttl @@ -0,0 +1 @@ + _|invalid . diff --git a/test/extra/bad/bad-blank.ttl b/test/extra/bad/bad-blank.ttl new file mode 100644 index 00000000..a6543f2d --- /dev/null +++ b/test/extra/bad/bad-blank.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +_:.bad a eg:Thing . \ No newline at end of file diff --git a/test/extra/bad/bad-bom.ttl b/test/extra/bad/bad-bom.ttl new file mode 100644 index 00000000..67993884 --- /dev/null +++ b/test/extra/bad/bad-bom.ttl @@ -0,0 +1,3 @@ +ï»´# This file starts with the first two bytes of the UTF-8 Byte Order Mark + + a . diff --git a/test/extra/bad/bad-char-in-local.ttl b/test/extra/bad/bad-char-in-local.ttl new file mode 100644 index 00000000..973cc0a2 --- /dev/null +++ b/test/extra/bad/bad-char-in-local.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +eg:†bad . diff --git a/test/extra/bad/bad-char-in-prefix.ttl b/test/extra/bad/bad-char-in-prefix.ttl new file mode 100644 index 00000000..b54e0274 --- /dev/null +++ b/test/extra/bad/bad-char-in-prefix.ttl @@ -0,0 +1 @@ +bad†:s . diff --git a/test/extra/bad/bad-char-in-uri.ttl b/test/extra/bad/bad-char-in-uri.ttl new file mode 100644 index 00000000..49f9c0d4 --- /dev/null +++ b/test/extra/bad/bad-char-in-uri.ttl @@ -0,0 +1 @@ +<ÿÿÿ://a.example/s> "\u0006!#[]\u007F" . diff --git a/test/extra/bad/bad-datatype-syntax.ttl b/test/extra/bad/bad-datatype-syntax.ttl new file mode 100644 index 00000000..541c25d4 --- /dev/null +++ b/test/extra/bad/bad-datatype-syntax.ttl @@ -0,0 +1 @@ + "value"^ . diff --git a/test/extra/bad/bad-datatype.ttl b/test/extra/bad/bad-datatype.ttl new file mode 100644 index 00000000..0dd6018f --- /dev/null +++ b/test/extra/bad/bad-datatype.ttl @@ -0,0 +1 @@ +<> "hello"^^"not-a-uri" . \ No newline at end of file diff --git a/test/extra/bad/bad-dot-after-subject.ttl b/test/extra/bad/bad-dot-after-subject.ttl new file mode 100644 index 00000000..e76e0ea2 --- /dev/null +++ b/test/extra/bad/bad-dot-after-subject.ttl @@ -0,0 +1 @@ + . . diff --git a/test/extra/bad/bad-dot-in-collection.ttl b/test/extra/bad/bad-dot-in-collection.ttl new file mode 100644 index 00000000..d2d35bc2 --- /dev/null +++ b/test/extra/bad/bad-dot-in-collection.ttl @@ -0,0 +1 @@ +[ (1. diff --git a/test/extra/bad/bad-eof-after-quotes.ttl b/test/extra/bad/bad-eof-after-quotes.ttl new file mode 100644 index 00000000..40e429cb --- /dev/null +++ b/test/extra/bad/bad-eof-after-quotes.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +<> eg:comment "" \ No newline at end of file diff --git a/test/extra/bad/bad-eof-at-string-start.ttl b/test/extra/bad/bad-eof-at-string-start.ttl new file mode 100644 index 00000000..93d20bcc --- /dev/null +++ b/test/extra/bad/bad-eof-at-string-start.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +<> eg:comment " \ No newline at end of file diff --git a/test/extra/bad/bad-eof-in-blank.ttl b/test/extra/bad/bad-eof-in-blank.ttl new file mode 100644 index 00000000..8cf4ee84 --- /dev/null +++ b/test/extra/bad/bad-eof-in-blank.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +<> eg:thing [ eg:comment "Thing" \ No newline at end of file diff --git a/test/extra/bad/bad-eof-in-escape.ttl b/test/extra/bad/bad-eof-in-escape.ttl new file mode 100644 index 00000000..24b4eec6 --- /dev/null +++ b/test/extra/bad/bad-eof-in-escape.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +<> eg:comment """\uA \ No newline at end of file diff --git a/test/extra/bad/bad-eof-in-lang-suffix.ttl b/test/extra/bad/bad-eof-in-lang-suffix.ttl new file mode 100644 index 00000000..f46a7763 --- /dev/null +++ b/test/extra/bad/bad-eof-in-lang-suffix.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +<> eg:comment "That ain't no language"@en-x \ No newline at end of file diff --git a/test/extra/bad/bad-eof-in-lang.ttl b/test/extra/bad/bad-eof-in-lang.ttl new file mode 100644 index 00000000..bfdffd02 --- /dev/null +++ b/test/extra/bad/bad-eof-in-lang.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +<> eg:comment "That ain't no language"@a \ No newline at end of file diff --git a/test/extra/bad/bad-eof-in-list.ttl b/test/extra/bad/bad-eof-in-list.ttl new file mode 100644 index 00000000..13eeb88d --- /dev/null +++ b/test/extra/bad/bad-eof-in-list.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +<> eg:thing ( eg:car eg:cdr \ No newline at end of file diff --git a/test/extra/bad/bad-eof-in-long-string.ttl b/test/extra/bad/bad-eof-in-long-string.ttl new file mode 100644 index 00000000..2ef179a8 --- /dev/null +++ b/test/extra/bad/bad-eof-in-long-string.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +<> eg:comment """This is the string that never ends \ No newline at end of file diff --git a/test/extra/bad/bad-eof-in-object-list.ttl b/test/extra/bad/bad-eof-in-object-list.ttl new file mode 100644 index 00000000..9bbcd17a --- /dev/null +++ b/test/extra/bad/bad-eof-in-object-list.ttl @@ -0,0 +1,2 @@ +@prefix eg: . +<> eg:p eg:o , \ No newline at end of file diff --git a/test/extra/bad/bad-eof-in-object-list2.ttl b/test/extra/bad/bad-eof-in-object-list2.ttl new file mode 100644 index 00000000..9186fb9f --- /dev/null +++ b/test/extra/bad/bad-eof-in-object-list2.ttl @@ -0,0 +1,2 @@ +@prefix eg: . +<> eg:p eg:o ; eg:p1 eg:o2 , \ No newline at end of file diff --git a/test/extra/bad/bad-eof-in-predicate-list.ttl b/test/extra/bad/bad-eof-in-predicate-list.ttl new file mode 100644 index 00000000..eab5b05b --- /dev/null +++ b/test/extra/bad/bad-eof-in-predicate-list.ttl @@ -0,0 +1,2 @@ +@prefix eg: . +<> eg:p eg:o ; \ No newline at end of file diff --git a/test/extra/bad/bad-eof-in-string.ttl b/test/extra/bad/bad-eof-in-string.ttl new file mode 100644 index 00000000..bb6e817f --- /dev/null +++ b/test/extra/bad/bad-eof-in-string.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +<> eg:comment "This is the string that never ends \ No newline at end of file diff --git a/test/extra/bad/bad-eof-in-triple-quote.ttl b/test/extra/bad/bad-eof-in-triple-quote.ttl new file mode 100644 index 00000000..fb935441 --- /dev/null +++ b/test/extra/bad/bad-eof-in-triple-quote.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +<> eg:comment """Hello"" \ No newline at end of file diff --git a/test/extra/bad/bad-eof-in-uri-scheme.nt b/test/extra/bad/bad-eof-in-uri-scheme.nt new file mode 100644 index 00000000..de892dcf --- /dev/null +++ b/test/extra/bad/bad-eof-in-uri-scheme.nt @@ -0,0 +1 @@ + . + +<> eg:uri """\!""" . diff --git a/test/extra/bad/bad-ext-namedblank-op.ttl b/test/extra/bad/bad-ext-namedblank-op.ttl new file mode 100644 index 00000000..5e648393 --- /dev/null +++ b/test/extra/bad/bad-ext-namedblank-op.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +eg:s eg:p [ =: _:o ; eg:name "o" ] . diff --git a/test/extra/bad/bad-graph-blank-label.trig b/test/extra/bad/bad-graph-blank-label.trig new file mode 100644 index 00000000..8b329db3 --- /dev/null +++ b/test/extra/bad/bad-graph-blank-label.trig @@ -0,0 +1,3 @@ +PREFIX : + +GRAPH [ :p :o ] { :s :p :o } diff --git a/test/extra/bad/bad-hex-digit.ttl b/test/extra/bad/bad-hex-digit.ttl new file mode 100644 index 00000000..85816ced --- /dev/null +++ b/test/extra/bad/bad-hex-digit.ttl @@ -0,0 +1 @@ + "\uABCG" . diff --git a/test/extra/bad/bad-id-clash.ttl b/test/extra/bad/bad-id-clash.ttl new file mode 100644 index 00000000..c1536840 --- /dev/null +++ b/test/extra/bad/bad-id-clash.ttl @@ -0,0 +1,2 @@ +_:b1 a _:b2 . +_:b2 a _:B1 . \ No newline at end of file diff --git a/test/extra/bad/bad-lang.ttl b/test/extra/bad/bad-lang.ttl new file mode 100644 index 00000000..01e04328 --- /dev/null +++ b/test/extra/bad/bad-lang.ttl @@ -0,0 +1 @@ +<> "hello"@\bad . \ No newline at end of file diff --git a/test/extra/bad/bad-list.ttl b/test/extra/bad/bad-list.ttl new file mode 100644 index 00000000..5606658e --- /dev/null +++ b/test/extra/bad/bad-list.ttl @@ -0,0 +1 @@ +<> , invalid . \ No newline at end of file diff --git a/test/extra/bad/bad-list2.ttl b/test/extra/bad/bad-list2.ttl new file mode 100644 index 00000000..18584209 --- /dev/null +++ b/test/extra/bad/bad-list2.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +<> eg:thing ( . \ No newline at end of file diff --git a/test/extra/bad/bad-long-literal-in-list.ttl b/test/extra/bad/bad-long-literal-in-list.ttl new file mode 100644 index 00000000..f10b4c3d --- /dev/null +++ b/test/extra/bad/bad-long-literal-in-list.ttl @@ -0,0 +1 @@ +<> ("""") . \ No newline at end of file diff --git a/test/extra/bad/bad-missing-semi.ttl b/test/extra/bad/bad-missing-semi.ttl new file mode 100644 index 00000000..f8838805 --- /dev/null +++ b/test/extra/bad/bad-missing-semi.ttl @@ -0,0 +1,3 @@ +@prefix a: . +a:s1 a:p1 a:o1 +a:s2 a:p2 a:o2 . diff --git a/test/extra/bad/bad-missing-uri-scheme.nt b/test/extra/bad/bad-missing-uri-scheme.nt new file mode 100644 index 00000000..5d7bc724 --- /dev/null +++ b/test/extra/bad/bad-missing-uri-scheme.nt @@ -0,0 +1 @@ + . diff --git a/test/extra/bad/bad-misspelled-base.ttl b/test/extra/bad/bad-misspelled-base.ttl new file mode 100644 index 00000000..c8ae227a --- /dev/null +++ b/test/extra/bad/bad-misspelled-base.ttl @@ -0,0 +1 @@ +@baze eg: . diff --git a/test/extra/bad/bad-misspelled-prefix.ttl b/test/extra/bad/bad-misspelled-prefix.ttl new file mode 100644 index 00000000..8c9d57f6 --- /dev/null +++ b/test/extra/bad/bad-misspelled-prefix.ttl @@ -0,0 +1 @@ +@prefox eg: . diff --git a/test/extra/bad/bad-namespace.ttl b/test/extra/bad/bad-namespace.ttl new file mode 100644 index 00000000..0dd78d33 --- /dev/null +++ b/test/extra/bad/bad-namespace.ttl @@ -0,0 +1 @@ +@prefix eg: "what?" . \ No newline at end of file diff --git a/test/extra/bad/bad-ns.ttl b/test/extra/bad/bad-ns.ttl new file mode 100644 index 00000000..4410573e --- /dev/null +++ b/test/extra/bad/bad-ns.ttl @@ -0,0 +1 @@ +<> a badprefix:Thing . \ No newline at end of file diff --git a/test/extra/bad/bad-null-byte.ttl b/test/extra/bad/bad-null-byte.ttl new file mode 100644 index 00000000..4f2cb404 Binary files /dev/null and b/test/extra/bad/bad-null-byte.ttl differ diff --git a/test/extra/bad/bad-num.ttl b/test/extra/bad/bad-num.ttl new file mode 100644 index 00000000..7685f0e0 --- /dev/null +++ b/test/extra/bad/bad-num.ttl @@ -0,0 +1 @@ +<> .hello . \ No newline at end of file diff --git a/test/extra/bad/bad-object.ttl b/test/extra/bad/bad-object.ttl new file mode 100644 index 00000000..9fc6da18 --- /dev/null +++ b/test/extra/bad/bad-object.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +eg:thing a four . diff --git a/test/extra/bad/bad-object2.ttl b/test/extra/bad/bad-object2.ttl new file mode 100644 index 00000000..9293d168 --- /dev/null +++ b/test/extra/bad/bad-object2.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +eg:thing a fives . diff --git a/test/extra/bad/bad-pn-escape.ttl b/test/extra/bad/bad-pn-escape.ttl new file mode 100644 index 00000000..2b363e89 --- /dev/null +++ b/test/extra/bad/bad-pn-escape.ttl @@ -0,0 +1,2 @@ +@prefix : . +:s :p :\a diff --git a/test/extra/bad/bad-prefix.ttl b/test/extra/bad/bad-prefix.ttl new file mode 100644 index 00000000..6c286355 --- /dev/null +++ b/test/extra/bad/bad-prefix.ttl @@ -0,0 +1 @@ +@prefix _invalid . diff --git a/test/extra/bad/bad-quote-in-uri.ttl b/test/extra/bad/bad-quote-in-uri.ttl new file mode 100644 index 00000000..30711241 --- /dev/null +++ b/test/extra/bad/bad-quote-in-uri.ttl @@ -0,0 +1 @@ + . \ No newline at end of file diff --git a/test/extra/bad/bad-semicolon-after-subject.ttl b/test/extra/bad/bad-semicolon-after-subject.ttl new file mode 100644 index 00000000..582c6ea0 --- /dev/null +++ b/test/extra/bad/bad-semicolon-after-subject.ttl @@ -0,0 +1 @@ + ; . diff --git a/test/extra/bad/bad-string.ttl b/test/extra/bad/bad-string.ttl new file mode 100644 index 00000000..0bdea42c --- /dev/null +++ b/test/extra/bad/bad-string.ttl @@ -0,0 +1 @@ +<> "hello \ No newline at end of file diff --git a/test/extra/bad/bad-subject.ttl b/test/extra/bad/bad-subject.ttl new file mode 100644 index 00000000..b98ea39b --- /dev/null +++ b/test/extra/bad/bad-subject.ttl @@ -0,0 +1 @@ +invalid.:thing a invalid.Thing . diff --git a/test/extra/bad/bad-uri-escape.ttl b/test/extra/bad/bad-uri-escape.ttl new file mode 100644 index 00000000..16c63754 --- /dev/null +++ b/test/extra/bad/bad-uri-escape.ttl @@ -0,0 +1 @@ + . diff --git a/test/extra/bad/bad-uri-scheme-start.nt b/test/extra/bad/bad-uri-scheme-start.nt new file mode 100644 index 00000000..cd3fd70f --- /dev/null +++ b/test/extra/bad/bad-uri-scheme-start.nt @@ -0,0 +1 @@ +<2http://example.org/s> . diff --git a/test/extra/bad/bad-uri-scheme.nt b/test/extra/bad/bad-uri-scheme.nt new file mode 100644 index 00000000..1329edcd --- /dev/null +++ b/test/extra/bad/bad-uri-scheme.nt @@ -0,0 +1 @@ + . diff --git a/test/extra/bad/bad-uri-truncated.nt b/test/extra/bad/bad-uri-truncated.nt new file mode 100644 index 00000000..22d29e4b --- /dev/null +++ b/test/extra/bad/bad-uri-truncated.nt @@ -0,0 +1 @@ + . +a:thing x a:Thing . \ No newline at end of file diff --git a/test/extra/bad/invalid-char-in-local.ttl b/test/extra/bad/invalid-char-in-local.ttl new file mode 100644 index 00000000..520c2404 --- /dev/null +++ b/test/extra/bad/invalid-char-in-local.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +eg:¿invalid . diff --git a/test/extra/bad/invalid-char-in-prefix.ttl b/test/extra/bad/invalid-char-in-prefix.ttl new file mode 100644 index 00000000..79547803 --- /dev/null +++ b/test/extra/bad/invalid-char-in-prefix.ttl @@ -0,0 +1 @@ +invalid¿:s . diff --git a/test/extra/bad/manifest.ttl b/test/extra/bad/manifest.ttl new file mode 100644 index 00000000..05bcc69d --- /dev/null +++ b/test/extra/bad/manifest.ttl @@ -0,0 +1,449 @@ +@prefix mf: . +@prefix rdf: . +@prefix rdfs: . +@prefix rdft: . + +<> + rdf:type mf:Manifest ; + rdfs:comment "Serd bad syntax test cases" ; + mf:entries ( + <#bad-00> + <#bad-01> + <#bad-02> + <#bad-03> + <#bad-04> + <#bad-05> + <#bad-06> + <#bad-07> + <#bad-08> + <#bad-09> + <#bad-10> + <#bad-11> + <#bad-12> + <#bad-13> + <#bad-14> + <#bad-base> + <#bad-blank> + <#bad-blank-syntax> + <#bad-bom> + <#bad-char-in-local> + <#bad-char-in-prefix> + <#bad-char-in-uri> + <#bad-datatype-syntax> + <#bad-datatype> + <#bad-dot-after-subject> + <#bad-dot-in-collection> + <#bad-eof-after-quotes> + <#bad-eof-at-string-start> + <#bad-eof-in-blank> + <#bad-eof-in-escape> + <#bad-eof-in-lang-suffix> + <#bad-eof-in-lang> + <#bad-eof-in-list> + <#bad-eof-in-object-list2> + <#bad-eof-in-object-list> + <#bad-eof-in-predicate-list> + <#bad-eof-in-long-string> + <#bad-eof-in-string> + <#bad-eof-in-triple-quote> + <#bad-eof-in-uri> + <#bad-eof-in-uri-scheme> + <#bad-escape> + <#bad-ext-namedblank-op> + <#bad-graph-blank-label> + <#bad-hex-digit> + <#bad-id-clash> + <#bad-lang> + <#bad-list2> + <#bad-list> + <#bad-long-literal-in-list> + <#bad-missing-semi> + <#bad-misspelled-base> + <#bad-misspelled-prefix> + <#bad-namespace> + <#bad-ns> + <#bad-null-byte> + <#bad-num> + <#bad-object2> + <#bad-object> + <#bad-pn-escape> + <#bad-prefix> + <#bad-quote-in-uri> + <#bad-semicolon-after-subject> + <#bad-string> + <#bad-subject> + <#bad-uri-escape> + <#bad-verb> + <#invalid-char-in-local> + <#invalid-char-in-prefix> + <#bad-missing-uri-scheme.nt> + <#bad-uri-scheme.nt> + <#bad-uri-scheme-start.nt> + <#bad-uri-truncated.nt> + ) . + +<#bad-00> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-00" ; + mf:action . + +<#bad-01> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-01" ; + mf:action . + +<#bad-02> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-02" ; + mf:action . + +<#bad-03> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-03" ; + mf:action . + +<#bad-04> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-04" ; + mf:action . + +<#bad-05> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-05" ; + mf:action . + +<#bad-06> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-06" ; + mf:action . + +<#bad-07> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-07" ; + mf:action . + +<#bad-08> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-08" ; + mf:action . + +<#bad-09> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-09" ; + mf:action . + +<#bad-10> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-10" ; + mf:action . + +<#bad-11> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-11" ; + mf:action . + +<#bad-12> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-12" ; + mf:action . + +<#bad-13> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-13" ; + mf:action . + +<#bad-14> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-14" ; + mf:action . + +<#bad-base> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-base" ; + mf:action . + +<#bad-blank> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-blank" ; + mf:action . + +<#bad-blank-syntax> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-blank-syntax" ; + mf:action . + +<#bad-bom> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-bom" ; + mf:action . + +<#bad-char-in-local> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-char-in-local" ; + mf:action . + +<#bad-char-in-prefix> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-char-in-prefix" ; + mf:action . + +<#bad-char-in-uri> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-char-in-uri" ; + mf:action . + +<#bad-datatype-syntax> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-datatype-syntax" ; + mf:action . + +<#bad-datatype> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-datatype" ; + mf:action . + +<#bad-dot-after-subject> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-dot-after-subject" ; + mf:action . + +<#bad-dot-in-collection> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-dot-in-collection" ; + mf:action . + +<#bad-eof-after-quotes> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-eof-after-quotes" ; + mf:action . + +<#bad-eof-at-string-start> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-eof-at-string-start" ; + mf:action . + +<#bad-eof-in-blank> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-eof-in-blank" ; + mf:action . + +<#bad-eof-in-escape> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-eof-in-escape" ; + mf:action . + +<#bad-eof-in-lang-suffix> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-eof-in-lang-suffix" ; + mf:action . + +<#bad-eof-in-lang> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-eof-in-lang" ; + mf:action . + +<#bad-eof-in-list> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-eof-in-list" ; + mf:action . + +<#bad-eof-in-object-list2> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-eof-in-object-list2" ; + mf:action . + +<#bad-eof-in-object-list> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-eof-in-object-list" ; + mf:action . + +<#bad-eof-in-predicate-list> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-eof-in-predicate-list" ; + mf:action . + +<#bad-eof-in-long-string> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-eof-in-long-string" ; + mf:action . + +<#bad-eof-in-string> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-eof-in-string" ; + mf:action . + +<#bad-eof-in-triple-quote> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-eof-in-triple-quote" ; + mf:action . + +<#bad-eof-in-uri> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-eof-in-uri" ; + mf:action . + +<#bad-eof-in-uri-scheme> + rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "bad-eof-in-uri-scheme" ; + mf:action . + +<#bad-escape> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-escape" ; + mf:action . + +<#bad-ext-namedblank-op> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-ext-namedblank-op" ; + mf:action . + +<#bad-graph-blank-label> + rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "bad-graph-blank-label" ; + mf:action . + +<#bad-hex-digit> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-hex-digit" ; + mf:action . + +<#bad-id-clash> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-id-clash" ; + mf:action . + +<#bad-lang> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-lang" ; + mf:action . + +<#bad-list2> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-list2" ; + mf:action . + +<#bad-list> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-list" ; + mf:action . + +<#bad-long-literal-in-list> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-long-literal-in-list" ; + mf:action . + +<#bad-missing-semi> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-missing-semi" ; + mf:action . + +<#bad-misspelled-base> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-misspelled-base" ; + mf:action . + +<#bad-misspelled-prefix> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-misspelled-prefix" ; + mf:action . + +<#bad-namespace> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-namespace" ; + mf:action . + +<#bad-ns> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-ns" ; + mf:action . + +<#bad-null-byte> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-null-byte" ; + mf:action . + +<#bad-num> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-num" ; + mf:action . + +<#bad-object2> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-object2" ; + mf:action . + +<#bad-object> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-object" ; + mf:action . + +<#bad-pn-escape> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-pn-escape" ; + mf:action . + +<#bad-prefix> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-prefix" ; + mf:action . + +<#bad-quote-in-uri> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-quote-in-uri" ; + mf:action . + +<#bad-semicolon-after-subject> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-semicolon-after-subject" ; + mf:action . + +<#bad-string> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-string" ; + mf:action . + +<#bad-subject> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-subject" ; + mf:action . + +<#bad-uri-escape> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-uri-escape" ; + mf:action . + +<#bad-verb> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-verb" ; + mf:action . + +<#invalid-char-in-local> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "invalid-char-in-local" ; + mf:action . + +<#invalid-char-in-prefix> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "invalid-char-in-prefix" ; + mf:action . + +<#bad-missing-uri-scheme.nt> + rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "bad-missing-uri-scheme" ; + mf:action . + +<#bad-uri-scheme.nt> + rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "bad-uri-scheme" ; + mf:action . + +<#bad-uri-scheme-start.nt> + rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "bad-uri-scheme-start" ; + mf:action . + +<#bad-uri-truncated.nt> + rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "bad-uri-truncated" ; + mf:action . + -- cgit v1.2.1