From a5824db519e84e8e45498e78502615d99b63d144 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 24 Sep 2017 18:48:18 +0200 Subject: Make internal tests standard manifest-driven test suites --- tests/good/manifest.ttl | 363 ++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 304 insertions(+), 59 deletions(-) (limited to 'tests/good/manifest.ttl') diff --git a/tests/good/manifest.ttl b/tests/good/manifest.ttl index bf0d4af4..026da87d 100644 --- a/tests/good/manifest.ttl +++ b/tests/good/manifest.ttl @@ -1,59 +1,304 @@ -@prefix rdf: . -@prefix rdfs: . -@prefix mf: . -@prefix qt: . - -<> rdf:type mf:Manifest ; - rdfs:comment "Turtle good syntax test cases (must pass)" ; - mf:entries - ( - [ mf:name "test-14" ; - rdfs:comment "10000 triples, more than the default Bison stack size" ; - mf:action [ qt:data ] ; - mf:result - ] - - [ mf:name "test-15" ; - rdfs:comment "10000 triple objects (10000 triples)" ; - mf:action [ qt:data ] ; - mf:result - ] - - [ mf:name "test-16" ; - rdfs:comment "10000 items (10000 triples)" ; - mf:action [ qt:data ] ; - mf:result - ] - - [ mf:name "test-18" ; - rdfs:comment "long literals with escapes" ; - mf:action [ qt:data ] ; - mf:result - ] - - [ mf:name "test-30" ; - rdfs:comment "@base" ; - mf:action [ qt:data ] ; - mf:result - ] - - [ mf:name "rdf-schema" ; - rdfs:comment "RDF Namespace document converted into Turtle" ; - mf:action [ qt:data ] ; - mf:result - ] - - [ mf:name "rdfs-namespace" ; - rdfs:comment "RDFS Namespace document converted into Turtle" ; - mf:action [ qt:data ] ; - mf:result - ] - - [ mf:name "rdfq-results" ; - rdfs:comment "Example query result from http://www.w3.org/2003/03/rdfqr-tests/recording-query-results.html" ; - mf:action [ qt:data ] ; - mf:result - ] - - # End of tests - ). +@prefix mf: . +@prefix rdf: . +@prefix rdfs: . +@prefix rdft: . + +<> + rdf:type mf:Manifest ; + rdfs:comment "Serd good syntax test cases" ; + mf:entries ( + <#test-14> + <#base> + <#manifest> + <#rdf-schema> + <#rdfs-namespace> + <#test-14> + <#test-15> + <#test-16> + <#test-18> + <#test-30> + <#test-backspace> + <#test-bad-utf8> + <#test-base-query> + <#test-blank-cont> + <#test-blankdot> + <#test-blank-in-list> + <#test-bom> + <#test-cr> + <#test-delete> + <#test-digit-start-pname> + <#test-empty> + <#test-eof-at-page-end> + <#test-escapes> + <#test-ext-namedblank-iri> + <#test-ext-namedblank-prefix> + <#test-id> + <#test-lang> + <#test-list-in-blank> + <#test-list-subject> + <#test-list> + <#test-long-string> + <#test-no-spaces> + <#test-num> + <#test-out-of-range-unicode> + <#test-prefix> + <#test-pretty> + <#test-rel> + <#test-semi-dot> + <#test-uri-escape> + <#test-uri> + <#test-utf8-uri> + <#UTF-8> + ) . + +<#test-14> + rdf:type rdft:TestTurtleEval ; + mf:name "test-14" ; + mf:action . + +<#base> + rdf:type rdft:TestTurtleEval ; + mf:name "base" ; + mf:action ; + mf:result . + +<#manifest> + rdf:type rdft:TestTurtleEval ; + mf:name "manifest" ; + mf:action ; + mf:result . + +<#rdf-schema> + rdf:type rdft:TestTurtleEval ; + mf:name "rdf-schema" ; + mf:action ; + mf:result . + +<#rdfs-namespace> + rdf:type rdft:TestTurtleEval ; + mf:name "rdfs-namespace" ; + mf:action ; + mf:result . + +<#test-14> + rdf:type rdft:TestTurtleEval ; + mf:name "test-14" ; + mf:action ; + mf:result . + +<#test-15> + rdf:type rdft:TestTurtleEval ; + mf:name "test-15" ; + mf:action ; + mf:result . + +<#test-16> + rdf:type rdft:TestTurtleEval ; + mf:name "test-16" ; + mf:action ; + mf:result . + +<#test-18> + rdf:type rdft:TestTurtleEval ; + mf:name "test-18" ; + mf:action ; + mf:result . + +<#test-30> + rdf:type rdft:TestTurtleEval ; + mf:name "test-30" ; + mf:action ; + mf:result . + +<#test-backspace> + rdf:type rdft:TestTurtleEval ; + mf:name "test-backspace" ; + mf:action ; + mf:result . + +<#test-bad-utf8> + rdf:type rdft:TestTurtleEval ; + mf:name "test-bad-utf8" ; + mf:action ; + mf:result . + +<#test-base-query> + rdf:type rdft:TestTurtleEval ; + mf:name "test-base-query" ; + mf:action ; + mf:result . + +<#test-blank-cont> + rdf:type rdft:TestTurtleEval ; + mf:name "test-blank-cont" ; + mf:action ; + mf:result . + +<#test-blankdot> + rdf:type rdft:TestTurtleEval ; + mf:name "test-blankdot" ; + mf:action ; + mf:result . + +<#test-blank-in-list> + rdf:type rdft:TestTurtleEval ; + mf:name "test-blank-in-list" ; + mf:action ; + mf:result . + +<#test-bom> + rdf:type rdft:TestTurtleEval ; + mf:name "test-bom" ; + mf:action ; + mf:result . + +<#test-cr> + rdf:type rdft:TestTurtleEval ; + mf:name "test-cr" ; + mf:action ; + mf:result . + +<#test-delete> + rdf:type rdft:TestTurtleEval ; + mf:name "test-delete" ; + mf:action ; + mf:result . + +<#test-digit-start-pname> + rdf:type rdft:TestTurtleEval ; + mf:name "test-digit-start-pname" ; + mf:action ; + mf:result . + +<#test-empty> + rdf:type rdft:TestTurtleEval ; + mf:name "test-empty" ; + mf:action ; + mf:result . + +<#test-eof-at-page-end> + rdf:type rdft:TestTurtleEval ; + mf:name "test-eof-at-page-end" ; + mf:action ; + mf:result . + +<#test-escapes> + rdf:type rdft:TestTurtleEval ; + mf:name "test-escapes" ; + mf:action ; + mf:result . + +<#test-ext-namedblank-iri> + rdf:type rdft:TestTurtleEval ; + mf:name "test-ext-namedblank-iri" ; + mf:action ; + mf:result . + +<#test-ext-namedblank-prefix> + rdf:type rdft:TestTurtleEval ; + mf:name "test-ext-namedblank-prefix" ; + mf:action ; + mf:result . + +<#test-id> + rdf:type rdft:TestTurtleEval ; + mf:name "test-id" ; + mf:action ; + mf:result . + +<#test-lang> + rdf:type rdft:TestTurtleEval ; + mf:name "test-lang" ; + mf:action ; + mf:result . + +<#test-list-in-blank> + rdf:type rdft:TestTurtleEval ; + mf:name "test-list-in-blank" ; + mf:action ; + mf:result . + +<#test-list-subject> + rdf:type rdft:TestTurtleEval ; + mf:name "test-list-subject" ; + mf:action ; + mf:result . + +<#test-list> + rdf:type rdft:TestTurtleEval ; + mf:name "test-list" ; + mf:action ; + mf:result . + +<#test-long-string> + rdf:type rdft:TestTurtleEval ; + mf:name "test-long-string" ; + mf:action ; + mf:result . + +<#test-no-spaces> + rdf:type rdft:TestTurtleEval ; + mf:name "test-no-spaces" ; + mf:action ; + mf:result . + +<#test-num> + rdf:type rdft:TestTurtleEval ; + mf:name "test-num" ; + mf:action ; + mf:result . + +<#test-out-of-range-unicode> + rdf:type rdft:TestTurtleEval ; + mf:name "test-out-of-range-unicode" ; + mf:action ; + mf:result . + +<#test-prefix> + rdf:type rdft:TestTurtleEval ; + mf:name "test-prefix" ; + mf:action ; + mf:result . + +<#test-pretty> + rdf:type rdft:TestTurtleEval ; + mf:name "test-pretty" ; + mf:action ; + mf:result . + +<#test-rel> + rdf:type rdft:TestTurtleEval ; + mf:name "test-rel" ; + mf:action ; + mf:result . + +<#test-semi-dot> + rdf:type rdft:TestTurtleEval ; + mf:name "test-semi-dot" ; + mf:action ; + mf:result . + +<#test-uri-escape> + rdf:type rdft:TestTurtleEval ; + mf:name "test-uri-escape" ; + mf:action ; + mf:result . + +<#test-uri> + rdf:type rdft:TestTurtleEval ; + mf:name "test-uri" ; + mf:action ; + mf:result . + +<#test-utf8-uri> + rdf:type rdft:TestTurtleEval ; + mf:name "test-utf8-uri" ; + mf:action ; + mf:result . + +<#UTF-8> + rdf:type rdft:TestTurtleEval ; + mf:name "UTF-8" ; + mf:action ; + mf:result . + -- cgit v1.2.1