From accb206729f92b86b932f98df840d1480605ce11 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 Apr 2023 09:00:19 -0400 Subject: Clean up remaining stale test suite data --- NEWS | 3 +- test/extra/bad/README.md | 7 + 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-a-subject.ttl | 3 + test/extra/bad/bad-blank-predicate.ttl | 3 + test/extra/bad/bad-comma-in-collection.ttl | 3 + test/extra/bad/bad-disallowed-char-in-local.ttl | 3 + test/extra/bad/bad-disallowed-char-in-prefix.ttl | 1 + test/extra/bad/bad-empty-blank-predicate.ttl | 3 + test/extra/bad/bad-equivalence.ttl | 3 + test/extra/bad/bad-forAll.ttl | 3 + test/extra/bad/bad-forSome.ttl | 3 + test/extra/bad/bad-graph-subject.ttl | 4 + test/extra/bad/bad-implied.ttl | 3 + test/extra/bad/bad-implies.ttl | 3 + test/extra/bad/bad-is-of-keywords.ttl | 3 + test/extra/bad/bad-keywords.ttl | 2 + test/extra/bad/bad-long-literal-missing-end.ttl | 6 + test/extra/bad/bad-paths.ttl | 4 + test/extra/bad/bad-prefix-missing-colon.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 | 598 +++++++++++------------ test/extra/lax/manifest.ttl | 2 +- 38 files changed, 361 insertions(+), 353 deletions(-) create mode 100644 test/extra/bad/README.md delete mode 100644 test/extra/bad/bad-00.ttl delete mode 100644 test/extra/bad/bad-01.ttl delete mode 100644 test/extra/bad/bad-02.ttl delete mode 100644 test/extra/bad/bad-03.ttl delete mode 100644 test/extra/bad/bad-04.ttl delete mode 100644 test/extra/bad/bad-05.ttl delete mode 100644 test/extra/bad/bad-06.ttl delete mode 100644 test/extra/bad/bad-07.ttl delete mode 100644 test/extra/bad/bad-08.ttl delete mode 100644 test/extra/bad/bad-09.ttl delete mode 100644 test/extra/bad/bad-10.ttl delete mode 100644 test/extra/bad/bad-11.ttl delete mode 100644 test/extra/bad/bad-12.ttl delete mode 100644 test/extra/bad/bad-13.ttl delete mode 100644 test/extra/bad/bad-14.ttl create mode 100644 test/extra/bad/bad-a-subject.ttl create mode 100644 test/extra/bad/bad-blank-predicate.ttl create mode 100644 test/extra/bad/bad-comma-in-collection.ttl create mode 100644 test/extra/bad/bad-disallowed-char-in-local.ttl create mode 100644 test/extra/bad/bad-disallowed-char-in-prefix.ttl create mode 100644 test/extra/bad/bad-empty-blank-predicate.ttl create mode 100644 test/extra/bad/bad-equivalence.ttl create mode 100644 test/extra/bad/bad-forAll.ttl create mode 100644 test/extra/bad/bad-forSome.ttl create mode 100644 test/extra/bad/bad-graph-subject.ttl create mode 100644 test/extra/bad/bad-implied.ttl create mode 100644 test/extra/bad/bad-implies.ttl create mode 100644 test/extra/bad/bad-is-of-keywords.ttl create mode 100644 test/extra/bad/bad-keywords.ttl create mode 100644 test/extra/bad/bad-long-literal-missing-end.ttl create mode 100644 test/extra/bad/bad-paths.ttl create mode 100644 test/extra/bad/bad-prefix-missing-colon.ttl delete mode 100644 test/extra/bad/invalid-char-in-local.ttl delete mode 100644 test/extra/bad/invalid-char-in-prefix.ttl diff --git a/NEWS b/NEWS index 093d1ddc..4f7db827 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,7 @@ serd (0.31.1) unstable; urgency=medium * Avoid creating test files in the current directory * Avoid using ASCII grave as a quote * Check for POSIX features with the build system + * Clean up and improve test suite * Clean up code * Fix crash when trying to read chunks without starting * Fix hang when skipping an error at EOF when lax parsing @@ -22,7 +23,7 @@ serd (0.31.1) unstable; urgency=medium * Replace duplicated dox_to_sphinx script with sphinxygen dependency * Test header for warnings more strictly - -- David Robillard Mon, 03 Apr 2023 12:50:04 +0000 + -- David Robillard Mon, 03 Apr 2023 12:54:58 +0000 serd (0.30.16) stable; urgency=medium diff --git a/test/extra/bad/README.md b/test/extra/bad/README.md new file mode 100644 index 00000000..32dce631 --- /dev/null +++ b/test/extra/bad/README.md @@ -0,0 +1,7 @@ +Bad Test Suite +============== + +This suite contains tests that are "bad" in the sense that they are negative +tests which contain errors the implementation must detect. These tests have no +results to compare, since parsing is expected to fail. The implementation may +emit some triples before failing, but this output is ignored. diff --git a/test/extra/bad/bad-00.ttl b/test/extra/bad/bad-00.ttl deleted file mode 100644 index b1a1b361..00000000 --- a/test/extra/bad/bad-00.ttl +++ /dev/null @@ -1,2 +0,0 @@ -# prefix name must end in a : -@prefix a <#> . diff --git a/test/extra/bad/bad-01.ttl b/test/extra/bad/bad-01.ttl deleted file mode 100644 index 533bc21d..00000000 --- a/test/extra/bad/bad-01.ttl +++ /dev/null @@ -1,3 +0,0 @@ -# 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 deleted file mode 100644 index fd2014d0..00000000 --- a/test/extra/bad/bad-02.ttl +++ /dev/null @@ -1,3 +0,0 @@ -# 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 deleted file mode 100644 index 07a372f1..00000000 --- a/test/extra/bad/bad-03.ttl +++ /dev/null @@ -1,3 +0,0 @@ -# '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 deleted file mode 100644 index ee7246c8..00000000 --- a/test/extra/bad/bad-04.ttl +++ /dev/null @@ -1,3 +0,0 @@ -# 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 deleted file mode 100644 index 387015fe..00000000 --- a/test/extra/bad/bad-05.ttl +++ /dev/null @@ -1,4 +0,0 @@ -# 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 deleted file mode 100644 index a8f1a0fc..00000000 --- a/test/extra/bad/bad-06.ttl +++ /dev/null @@ -1,3 +0,0 @@ -# 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 deleted file mode 100644 index 18ea4fa6..00000000 --- a/test/extra/bad/bad-07.ttl +++ /dev/null @@ -1,4 +0,0 @@ -# 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 deleted file mode 100644 index 07918f9a..00000000 --- a/test/extra/bad/bad-08.ttl +++ /dev/null @@ -1,2 +0,0 @@ -@keywords something. -# @keywords is not in turtle diff --git a/test/extra/bad/bad-09.ttl b/test/extra/bad/bad-09.ttl deleted file mode 100644 index d2d76c13..00000000 --- a/test/extra/bad/bad-09.ttl +++ /dev/null @@ -1,3 +0,0 @@ -# implies is not in turtle -@prefix : . -:a => :b . diff --git a/test/extra/bad/bad-10.ttl b/test/extra/bad/bad-10.ttl deleted file mode 100644 index b5ef1f55..00000000 --- a/test/extra/bad/bad-10.ttl +++ /dev/null @@ -1,3 +0,0 @@ -# equivalence is not in turtle -@prefix : . -:a = :b . diff --git a/test/extra/bad/bad-11.ttl b/test/extra/bad/bad-11.ttl deleted file mode 100644 index 09e7b6a0..00000000 --- a/test/extra/bad/bad-11.ttl +++ /dev/null @@ -1,3 +0,0 @@ -# @forAll is not in turtle -@prefix : . -@forAll :x . diff --git a/test/extra/bad/bad-12.ttl b/test/extra/bad/bad-12.ttl deleted file mode 100644 index cef48ff8..00000000 --- a/test/extra/bad/bad-12.ttl +++ /dev/null @@ -1,3 +0,0 @@ -# @forSome is not in turtle -@prefix : . -@forSome :x . diff --git a/test/extra/bad/bad-13.ttl b/test/extra/bad/bad-13.ttl deleted file mode 100644 index 91accf2b..00000000 --- a/test/extra/bad/bad-13.ttl +++ /dev/null @@ -1,3 +0,0 @@ -# <= is not in turtle -@prefix : . -:a <= :b . diff --git a/test/extra/bad/bad-14.ttl b/test/extra/bad/bad-14.ttl deleted file mode 100644 index f4a7acf5..00000000 --- a/test/extra/bad/bad-14.ttl +++ /dev/null @@ -1,6 +0,0 @@ -# Test long literals with missing end -@prefix : . -:a :b """a long - literal -with -newlines diff --git a/test/extra/bad/bad-a-subject.ttl b/test/extra/bad/bad-a-subject.ttl new file mode 100644 index 00000000..07a372f1 --- /dev/null +++ b/test/extra/bad/bad-a-subject.ttl @@ -0,0 +1,3 @@ +# 'a' only allowed as a predicate +@prefix : . +a :a :b . diff --git a/test/extra/bad/bad-blank-predicate.ttl b/test/extra/bad/bad-blank-predicate.ttl new file mode 100644 index 00000000..533bc21d --- /dev/null +++ b/test/extra/bad/bad-blank-predicate.ttl @@ -0,0 +1,3 @@ +# Forbidden by RDF - predicate cannot be blank +@prefix : . +:a [ :b :c ] :d . diff --git a/test/extra/bad/bad-comma-in-collection.ttl b/test/extra/bad/bad-comma-in-collection.ttl new file mode 100644 index 00000000..ee7246c8 --- /dev/null +++ b/test/extra/bad/bad-comma-in-collection.ttl @@ -0,0 +1,3 @@ +# No comma is allowed in collections +@prefix : . +:a :b ( "apple", "banana" ) . diff --git a/test/extra/bad/bad-disallowed-char-in-local.ttl b/test/extra/bad/bad-disallowed-char-in-local.ttl new file mode 100644 index 00000000..520c2404 --- /dev/null +++ b/test/extra/bad/bad-disallowed-char-in-local.ttl @@ -0,0 +1,3 @@ +@prefix eg: . + +eg:¿invalid . diff --git a/test/extra/bad/bad-disallowed-char-in-prefix.ttl b/test/extra/bad/bad-disallowed-char-in-prefix.ttl new file mode 100644 index 00000000..79547803 --- /dev/null +++ b/test/extra/bad/bad-disallowed-char-in-prefix.ttl @@ -0,0 +1 @@ +invalid¿:s . diff --git a/test/extra/bad/bad-empty-blank-predicate.ttl b/test/extra/bad/bad-empty-blank-predicate.ttl new file mode 100644 index 00000000..fd2014d0 --- /dev/null +++ b/test/extra/bad/bad-empty-blank-predicate.ttl @@ -0,0 +1,3 @@ +# Forbidden by RDF - predicate cannot be blank +@prefix : . +:a [] :b . diff --git a/test/extra/bad/bad-equivalence.ttl b/test/extra/bad/bad-equivalence.ttl new file mode 100644 index 00000000..b5ef1f55 --- /dev/null +++ b/test/extra/bad/bad-equivalence.ttl @@ -0,0 +1,3 @@ +# equivalence is not in turtle +@prefix : . +:a = :b . diff --git a/test/extra/bad/bad-forAll.ttl b/test/extra/bad/bad-forAll.ttl new file mode 100644 index 00000000..09e7b6a0 --- /dev/null +++ b/test/extra/bad/bad-forAll.ttl @@ -0,0 +1,3 @@ +# @forAll is not in turtle +@prefix : . +@forAll :x . diff --git a/test/extra/bad/bad-forSome.ttl b/test/extra/bad/bad-forSome.ttl new file mode 100644 index 00000000..cef48ff8 --- /dev/null +++ b/test/extra/bad/bad-forSome.ttl @@ -0,0 +1,3 @@ +# @forSome is not in turtle +@prefix : . +@forSome :x . diff --git a/test/extra/bad/bad-graph-subject.ttl b/test/extra/bad/bad-graph-subject.ttl new file mode 100644 index 00000000..387015fe --- /dev/null +++ b/test/extra/bad/bad-graph-subject.ttl @@ -0,0 +1,4 @@ +# N3 {}s are not in Turtle +@prefix : . +{ :a :b :c . } :d :e . + diff --git a/test/extra/bad/bad-implied.ttl b/test/extra/bad/bad-implied.ttl new file mode 100644 index 00000000..91accf2b --- /dev/null +++ b/test/extra/bad/bad-implied.ttl @@ -0,0 +1,3 @@ +# <= is not in turtle +@prefix : . +:a <= :b . diff --git a/test/extra/bad/bad-implies.ttl b/test/extra/bad/bad-implies.ttl new file mode 100644 index 00000000..d2d76c13 --- /dev/null +++ b/test/extra/bad/bad-implies.ttl @@ -0,0 +1,3 @@ +# implies is not in turtle +@prefix : . +:a => :b . diff --git a/test/extra/bad/bad-is-of-keywords.ttl b/test/extra/bad/bad-is-of-keywords.ttl new file mode 100644 index 00000000..a8f1a0fc --- /dev/null +++ b/test/extra/bad/bad-is-of-keywords.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-keywords.ttl b/test/extra/bad/bad-keywords.ttl new file mode 100644 index 00000000..07918f9a --- /dev/null +++ b/test/extra/bad/bad-keywords.ttl @@ -0,0 +1,2 @@ +@keywords something. +# @keywords is not in turtle diff --git a/test/extra/bad/bad-long-literal-missing-end.ttl b/test/extra/bad/bad-long-literal-missing-end.ttl new file mode 100644 index 00000000..f4a7acf5 --- /dev/null +++ b/test/extra/bad/bad-long-literal-missing-end.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-paths.ttl b/test/extra/bad/bad-paths.ttl new file mode 100644 index 00000000..18ea4fa6 --- /dev/null +++ b/test/extra/bad/bad-paths.ttl @@ -0,0 +1,4 @@ +# paths are not in turtle +@prefix : . +:a.:b.:c . +:a^:b^:c . diff --git a/test/extra/bad/bad-prefix-missing-colon.ttl b/test/extra/bad/bad-prefix-missing-colon.ttl new file mode 100644 index 00000000..b1a1b361 --- /dev/null +++ b/test/extra/bad/bad-prefix-missing-colon.ttl @@ -0,0 +1,2 @@ +# prefix name must end in a : +@prefix a <#> . diff --git a/test/extra/bad/invalid-char-in-local.ttl b/test/extra/bad/invalid-char-in-local.ttl deleted file mode 100644 index 520c2404..00000000 --- a/test/extra/bad/invalid-char-in-local.ttl +++ /dev/null @@ -1,3 +0,0 @@ -@prefix eg: . - -eg:¿invalid . diff --git a/test/extra/bad/invalid-char-in-prefix.ttl b/test/extra/bad/invalid-char-in-prefix.ttl deleted file mode 100644 index 79547803..00000000 --- a/test/extra/bad/invalid-char-in-prefix.ttl +++ /dev/null @@ -1 +0,0 @@ -invalid¿:s . diff --git a/test/extra/bad/manifest.ttl b/test/extra/bad/manifest.ttl index 05bcc69d..691969d9 100644 --- a/test/extra/bad/manifest.ttl +++ b/test/extra/bad/manifest.ttl @@ -1,38 +1,28 @@ @prefix mf: . -@prefix rdf: . @prefix rdfs: . @prefix rdft: . <> - rdf:type mf:Manifest ; - rdfs:comment "Serd bad syntax test cases" ; + a mf:Manifest ; + rdfs:comment "Serd bad (negative) test suite" ; 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-a-subject> <#bad-base> <#bad-blank> + <#bad-blank-predicate> <#bad-blank-syntax> <#bad-bom> <#bad-char-in-local> <#bad-char-in-prefix> <#bad-char-in-uri> - <#bad-datatype-syntax> + <#bad-comma-in-collection> <#bad-datatype> + <#bad-datatype-syntax> + <#bad-disallowed-char-in-local> + <#bad-disallowed-char-in-prefix> <#bad-dot-after-subject> <#bad-dot-in-collection> + <#bad-empty-blank-predicate> <#bad-eof-after-quotes> <#bad-eof-at-string-start> <#bad-eof-in-blank> @@ -40,410 +30,420 @@ <#bad-eof-in-lang-suffix> <#bad-eof-in-lang> <#bad-eof-in-list> - <#bad-eof-in-object-list2> + <#bad-eof-in-long-string> <#bad-eof-in-object-list> + <#bad-eof-in-object-list2> <#bad-eof-in-predicate-list> - <#bad-eof-in-long-string> <#bad-eof-in-string> + <#bad-eof-in-text-character> <#bad-eof-in-triple-quote> <#bad-eof-in-uri> + <#bad-eof-in-uri-character> <#bad-eof-in-uri-scheme> + <#bad-equivalence> <#bad-escape> <#bad-ext-namedblank-op> + <#bad-forAll> + <#bad-forSome> <#bad-graph-blank-label> + <#bad-graph-subject> <#bad-hex-digit> <#bad-id-clash> + <#bad-implied> + <#bad-implies> + <#bad-is-of-keywords> + <#bad-keywords> <#bad-lang> - <#bad-list2> <#bad-list> + <#bad-list2> <#bad-long-literal-in-list> + <#bad-long-literal-missing-end> <#bad-missing-semi> + <#bad-missing-uri-scheme> <#bad-misspelled-base> <#bad-misspelled-prefix> <#bad-namespace> <#bad-ns> <#bad-null-byte> <#bad-num> - <#bad-object2> <#bad-object> + <#bad-object2> + <#bad-paths> <#bad-pn-escape> + <#bad-prefix-missing-colon> <#bad-prefix> <#bad-quote-in-uri> <#bad-semicolon-after-subject> <#bad-string> <#bad-subject> <#bad-uri-escape> + <#bad-uri-scheme> + <#bad-uri-scheme-start> + <#bad-uri-truncated> <#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-a-subject> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-a-subject" . <#bad-base> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-base" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-base" . <#bad-blank> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-blank" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-blank" . + +<#bad-blank-predicate> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-blank-predicate" . <#bad-blank-syntax> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-blank-syntax" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-blank-syntax" . <#bad-bom> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-bom" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-bom" . <#bad-char-in-local> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-char-in-local" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-char-in-local" . <#bad-char-in-prefix> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-char-in-prefix" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-char-in-prefix" . <#bad-char-in-uri> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-char-in-uri" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-char-in-uri" . -<#bad-datatype-syntax> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-datatype-syntax" ; - mf:action . +<#bad-comma-in-collection> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-comma-in-collection" . <#bad-datatype> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-datatype" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-datatype" . + +<#bad-datatype-syntax> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-datatype-syntax" . + +<#bad-disallowed-char-in-local> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-disallowed-char-in-local" . + +<#bad-disallowed-char-in-prefix> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-disallowed-char-in-prefix" . <#bad-dot-after-subject> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-dot-after-subject" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-dot-after-subject" . <#bad-dot-in-collection> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-dot-in-collection" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-dot-in-collection" . + +<#bad-empty-blank-predicate> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-empty-blank-predicate" . <#bad-eof-after-quotes> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-eof-after-quotes" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-after-quotes" . <#bad-eof-at-string-start> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-eof-at-string-start" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-at-string-start" . <#bad-eof-in-blank> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-eof-in-blank" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-in-blank" . <#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 . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-in-escape" . <#bad-eof-in-lang> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-eof-in-lang" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-in-lang" . + +<#bad-eof-in-lang-suffix> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-in-lang-suffix" . <#bad-eof-in-list> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-eof-in-list" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-in-list" . -<#bad-eof-in-object-list2> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-eof-in-object-list2" ; - mf:action . +<#bad-eof-in-long-string> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-in-long-string" . <#bad-eof-in-object-list> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-eof-in-object-list" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-in-object-list" . -<#bad-eof-in-predicate-list> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-eof-in-predicate-list" ; - mf:action . +<#bad-eof-in-object-list2> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-in-object-list2" . -<#bad-eof-in-long-string> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-eof-in-long-string" ; - mf:action . +<#bad-eof-in-predicate-list> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-in-predicate-list" . <#bad-eof-in-string> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-eof-in-string" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-in-string" . <#bad-eof-in-triple-quote> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-eof-in-triple-quote" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-in-triple-quote" . <#bad-eof-in-uri> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-eof-in-uri" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-in-uri" . <#bad-eof-in-uri-scheme> - rdf:type rdft:TestNTriplesNegativeSyntax ; - mf:name "bad-eof-in-uri-scheme" ; - mf:action . + a rdft:TestNTriplesNegativeSyntax ; + mf:action ; + mf:name "bad-eof-in-uri-scheme" . + +<#bad-equivalence> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-equivalence" . <#bad-escape> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-escape" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-escape" . <#bad-ext-namedblank-op> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-ext-namedblank-op" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-ext-namedblank-op" . + +<#bad-forAll> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-forAll" . + +<#bad-forSome> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-forSome" . <#bad-graph-blank-label> - rdf:type rdft:TestTrigNegativeSyntax ; - mf:name "bad-graph-blank-label" ; - mf:action . + a rdft:TestTrigNegativeSyntax ; + mf:action ; + mf:name "bad-graph-blank-label" . + +<#bad-graph-subject> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-graph-subject" . <#bad-hex-digit> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-hex-digit" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-hex-digit" . <#bad-id-clash> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-id-clash" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-id-clash" . + +<#bad-implied> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-implied" . + +<#bad-implies> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-implies" . + +<#bad-is-of-keywords> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-is-of-keywords" . + +<#bad-keywords> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-keywords" . <#bad-lang> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-lang" ; - mf:action . - -<#bad-list2> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-list2" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-lang" . <#bad-list> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-list" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-list" . + +<#bad-list2> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-list2" . <#bad-long-literal-in-list> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-long-literal-in-list" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-long-literal-in-list" . + +<#bad-long-literal-missing-end> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-long-literal-missing-end" . <#bad-missing-semi> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-missing-semi" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-missing-semi" . + +<#bad-missing-uri-scheme> + a rdft:TestNTriplesNegativeSyntax ; + mf:action ; + mf:name "bad-missing-uri-scheme" . <#bad-misspelled-base> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-misspelled-base" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-misspelled-base" . <#bad-misspelled-prefix> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-misspelled-prefix" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-misspelled-prefix" . <#bad-namespace> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-namespace" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-namespace" . <#bad-ns> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-ns" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-ns" . <#bad-null-byte> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-null-byte" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-null-byte" . <#bad-num> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-num" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-num" . + +<#bad-object> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-object" . <#bad-object2> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-object2" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-object2" . -<#bad-object> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-object" ; - mf:action . +<#bad-paths> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-paths" . <#bad-pn-escape> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-pn-escape" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-pn-escape" . <#bad-prefix> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-prefix" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-prefix" . + +<#bad-prefix-missing-colon> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-prefix-missing-colon" . <#bad-quote-in-uri> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-quote-in-uri" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-quote-in-uri" . <#bad-semicolon-after-subject> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-semicolon-after-subject" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-semicolon-after-subject" . <#bad-string> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-string" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-string" . <#bad-subject> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-subject" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-subject" . <#bad-uri-escape> - rdf:type rdft:TestTurtleNegativeSyntax ; - mf:name "bad-uri-escape" ; - mf:action . + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-uri-escape" . -<#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 . +<#bad-uri-scheme> + a rdft:TestNTriplesNegativeSyntax ; + mf:action ; + mf:name "bad-uri-scheme" . + +<#bad-uri-scheme-start> + a rdft:TestNTriplesNegativeSyntax ; + mf:action ; + mf:name "bad-uri-scheme-start" . +<#bad-uri-truncated> + a rdft:TestNTriplesNegativeSyntax ; + mf:action ; + mf:name "bad-uri-truncated" . + +<#bad-verb> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-verb" . diff --git a/test/extra/lax/manifest.ttl b/test/extra/lax/manifest.ttl index 5d220daf..e2930a81 100644 --- a/test/extra/lax/manifest.ttl +++ b/test/extra/lax/manifest.ttl @@ -4,7 +4,7 @@ <> a mf:Manifest ; - rdfs:comment "Serd lax syntax test cases" ; + rdfs:comment "Serd lax parsing test suite" ; mf:entries ( <#test-bad-string> <#test-bad-uri> -- cgit v1.2.1