aboutsummaryrefslogtreecommitdiffstats
path: root/test/pretty/manifest.ttl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-03-27 15:42:27 -0400
committerDavid Robillard <d@drobilla.net>2023-04-05 09:41:43 -0400
commite970e63146fb5d8de511104eba7aef5319e8653b (patch)
tree9f8e24335b84012ec0473e62301f37491c31cdb9 /test/pretty/manifest.ttl
parent68c1a2e677775e489cff4beb38ef17c1efeae4e3 (diff)
downloadserd-e970e63146fb5d8de511104eba7aef5319e8653b.tar.gz
serd-e970e63146fb5d8de511104eba7aef5319e8653b.tar.bz2
serd-e970e63146fb5d8de511104eba7aef5319e8653b.zip
Add pretty-printing test suite
The earlier "test" was just hitting the code without actually checking the output. This new suite is a set of pretty-printed documents which serd must reproduce exactly to pass. This should make it easy to add cases in the future, since each case is just a document, as it should look.
Diffstat (limited to 'test/pretty/manifest.ttl')
-rw-r--r--test/pretty/manifest.ttl171
1 files changed, 171 insertions, 0 deletions
diff --git a/test/pretty/manifest.ttl b/test/pretty/manifest.ttl
new file mode 100644
index 00000000..a78aa943
--- /dev/null
+++ b/test/pretty/manifest.ttl
@@ -0,0 +1,171 @@
+@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdft: <http://www.w3.org/ns/rdftest#> .
+@prefix serd: <http://drobilla.net/ns/serd#> .
+
+<>
+ a mf:Manifest ;
+ rdfs:comment "Serd pretty-printing test suite" ;
+ mf:entries (
+ <#abbreviation>
+ <#anonymous-in-list-object>
+ <#anonymous-object>
+ <#anonymous-subject>
+ <#anonymous-subject-and-object>
+ <#datatypes>
+ <#empty-anonymous-object>
+ <#empty-list-object>
+ <#empty-list-subject>
+ <#empty-list-subject-and-object>
+ <#ext-named-blank>
+ <#graph-abbreviation>
+ <#langtags>
+ <#list-in-object>
+ <#list-object>
+ <#local-name-escapes>
+ <#long-string-escapes>
+ <#long-string-quotes>
+ <#many-objects>
+ <#named-graph>
+ <#nested-list-object>
+ <#short-string-escapes>
+ <#uri-escapes>
+ ) .
+
+<#abbreviation>
+ a rdft:TestTurtleEval ;
+ mf:action <abbreviation.ttl> ;
+ mf:name "abbreviation" ;
+ mf:result <abbreviation.ttl> .
+
+<#anonymous-in-list-object>
+ a rdft:TestTurtleEval ;
+ mf:action <anonymous-in-list-object.ttl> ;
+ mf:name "anonymous-in-list-object" ;
+ mf:result <anonymous-in-list-object.ttl> .
+
+<#anonymous-object>
+ a rdft:TestTurtleEval ;
+ mf:action <anonymous-object.ttl> ;
+ mf:name "anonymous-object" ;
+ mf:result <anonymous-object.ttl> .
+
+<#anonymous-subject>
+ a rdft:TestTurtleEval ;
+ mf:action <anonymous-subject.ttl> ;
+ mf:name "anonymous-subject" ;
+ mf:result <anonymous-subject.ttl> .
+
+<#anonymous-subject-and-object>
+ a rdft:TestTurtleEval ;
+ mf:action <anonymous-subject-and-object.ttl> ;
+ mf:name "anonymous-subject-and-object" ;
+ mf:result <anonymous-subject-and-object.ttl> .
+
+<#datatypes>
+ a rdft:TestTurtleEval ;
+ mf:action <datatypes.ttl> ;
+ mf:name "datatypes" ;
+ mf:result <datatypes.ttl> .
+
+<#empty-anonymous-object>
+ a rdft:TestTurtleEval ;
+ mf:action <empty-anonymous-object.ttl> ;
+ mf:name "empty-anonymous-object" ;
+ mf:result <empty-anonymous-object.ttl> .
+
+<#empty-list-object>
+ a rdft:TestTurtleEval ;
+ mf:action <empty-list-object.ttl> ;
+ mf:name "empty-list-object" ;
+ mf:result <empty-list-object.ttl> .
+
+<#empty-list-subject>
+ a rdft:TestTurtleEval ;
+ mf:action <empty-list-subject.ttl> ;
+ mf:name "empty-list-subject" ;
+ mf:result <empty-list-subject.ttl> .
+
+<#empty-list-subject-and-object>
+ a rdft:TestTurtleEval ;
+ mf:action <empty-list-subject-and-object.ttl> ;
+ mf:name "empty-list-subject-and-object" ;
+ mf:result <empty-list-subject-and-object.ttl> .
+
+<#ext-named-blank>
+ a rdft:TestTurtleEval ;
+ mf:action <ext-named-blank.ttl> ;
+ mf:name "ext-named-blank" ;
+ mf:result <ext-named-blank.ttl> .
+
+<#graph-abbreviation>
+ a rdft:TestTrigEval ;
+ mf:action <graph-abbreviation.trig> ;
+ mf:name "graph-abbreviation" ;
+ mf:result <graph-abbreviation.trig> .
+
+<#langtags>
+ a rdft:TestTurtleEval ;
+ mf:action <langtags.ttl> ;
+ mf:name "langtags" ;
+ mf:result <langtags.ttl> .
+
+<#list-in-object>
+ a rdft:TestTurtleEval ;
+ mf:action <list-in-object.ttl> ;
+ mf:name "list-in-object" ;
+ mf:result <list-in-object.ttl> .
+
+<#list-object>
+ a rdft:TestTurtleEval ;
+ mf:action <list-object.ttl> ;
+ mf:name "list-object" ;
+ mf:result <list-object.ttl> .
+
+<#local-name-escapes>
+ a rdft:TestTurtleEval ;
+ mf:action <local-name-escapes.ttl> ;
+ mf:name "local-name-escapes" ;
+ mf:result <local-name-escapes.ttl> .
+
+<#long-string-escapes>
+ a rdft:TestTurtleEval ;
+ mf:action <long-string-escapes.ttl> ;
+ mf:name "long-string-escapes" ;
+ mf:result <long-string-escapes.ttl> .
+
+<#long-string-quotes>
+ a rdft:TestTurtleEval ;
+ mf:action <long-string-quotes.ttl> ;
+ mf:name "long-string-quotes" ;
+ mf:result <long-string-quotes.ttl> .
+
+<#many-objects>
+ a rdft:TestTurtleEval ;
+ mf:action <many-objects.ttl> ;
+ mf:name "many-objects" ;
+ mf:result <many-objects.ttl> .
+
+<#named-graph>
+ a rdft:TestTrigEval ;
+ mf:action <named-graph.trig> ;
+ mf:name "named-graph" ;
+ mf:result <named-graph.trig> .
+
+<#nested-list-object>
+ a rdft:TestTurtleEval ;
+ mf:action <nested-list-object.ttl> ;
+ mf:name "nested-list-object" ;
+ mf:result <nested-list-object.ttl> .
+
+<#short-string-escapes>
+ a rdft:TestTurtleEval ;
+ mf:action <short-string-escapes.ttl> ;
+ mf:name "short-string-escapes" ;
+ mf:result <short-string-escapes.ttl> .
+
+<#uri-escapes>
+ a rdft:TestTurtleEval ;
+ mf:action <uri-escapes.ttl> ;
+ mf:name "uri-escapes" ;
+ mf:result <uri-escapes.ttl> .