diff options
author | David Robillard <d@drobilla.net> | 2023-04-03 09:00:12 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-04-05 09:45:15 -0400 |
commit | 08a09191dd69e66aa56822383e84fe034d59dd3f (patch) | |
tree | 36048566f68bf46b8ad6b52925e0fac30f9f38fa /test/pretty | |
parent | f1adf9a4999d80d26314565d0c1f49c4471e5851 (diff) | |
download | serd-08a09191dd69e66aa56822383e84fe034d59dd3f.tar.gz serd-08a09191dd69e66aa56822383e84fe034d59dd3f.tar.bz2 serd-08a09191dd69e66aa56822383e84fe034d59dd3f.zip |
Separate test suites and simplify licensing metadata
Diffstat (limited to 'test/pretty')
31 files changed, 0 insertions, 573 deletions
diff --git a/test/pretty/README.md b/test/pretty/README.md deleted file mode 100644 index 361d9491..00000000 --- a/test/pretty/README.md +++ /dev/null @@ -1,5 +0,0 @@ -Pretty Test Suite -================= - -This suite contains single-file tests that can be read and rewritten in the -same syntax, exactly reproducing the input byte-for-byte. diff --git a/test/pretty/abbreviation.ttl b/test/pretty/abbreviation.ttl deleted file mode 100644 index bf46f6d5..00000000 --- a/test/pretty/abbreviation.ttl +++ /dev/null @@ -1,57 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:s1 - eg:b eg:c , - eg:d , - eg:e ; - eg:f eg:g , - eg:h ; - eg:i eg:j ; - eg:k eg:l . - -eg:s2 - a eg:Thing ; - eg:p1 eg:o1 , - [ - a eg:SubThing ; - eg:p2 eg:o2 - ] , [ - a eg:OtherSubThing ; - eg:p3 eg:o3 - ] ; - eg:p4 eg:o4 . - -eg:s3 - eg:resource eg:Blank . - -eg:s4 - eg:anon [] . - -eg:s5 - eg:blank [ - eg:nestedEmptyBlank [] ; - eg:nestedNonEmptyBlanks [ - eg:value 1 - ] , [ - eg:value 2 - ] - ] ; - eg:listOfNumbers ( - 3 - 4 - ) . - -eg:s6 - eg:listOfNumbers ( - 5 - 6 - ) . - -eg:s7 - eg:listOfResources ( - [ - eg:value 7 - ] [ - eg:value 8 - ] - ) . diff --git a/test/pretty/anonymous-in-list-object.ttl b/test/pretty/anonymous-in-list-object.ttl deleted file mode 100644 index 4f135e29..00000000 --- a/test/pretty/anonymous-in-list-object.ttl +++ /dev/null @@ -1,10 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:s - eg:p ( - [ - a eg:Spy - ] [ - a eg:Ninja - ] - ) . diff --git a/test/pretty/anonymous-object.ttl b/test/pretty/anonymous-object.ttl deleted file mode 100644 index f592fed1..00000000 --- a/test/pretty/anonymous-object.ttl +++ /dev/null @@ -1,10 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:s - eg:p1 [ - eg:p2 eg:o2 ; - eg:p3 eg:o3 - ] , [ - eg:p4 eg:o4 ; - eg:p5 eg:o5 - ] . diff --git a/test/pretty/anonymous-subject-and-object.ttl b/test/pretty/anonymous-subject-and-object.ttl deleted file mode 100644 index 8904cca6..00000000 --- a/test/pretty/anonymous-subject-and-object.ttl +++ /dev/null @@ -1,4 +0,0 @@ -@prefix eg: <http://example.org/> . - -[] - eg:p [] . diff --git a/test/pretty/anonymous-subject.ttl b/test/pretty/anonymous-subject.ttl deleted file mode 100644 index e0e467e2..00000000 --- a/test/pretty/anonymous-subject.ttl +++ /dev/null @@ -1,4 +0,0 @@ -@prefix eg: <http://example.org/> . - -[] - eg:p eg:o . diff --git a/test/pretty/datatypes.ttl b/test/pretty/datatypes.ttl deleted file mode 100644 index 721dfe4d..00000000 --- a/test/pretty/datatypes.ttl +++ /dev/null @@ -1,15 +0,0 @@ -@prefix eg: <http://example.org/> . -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . - -eg:s - eg:p -1.2 , - "-3."^^xsd:decimal , - -4 , - 0 , - 1 , - 2.3 , - "4."^^xsd:decimal , - false , - true , - "x"^^eg:datatype , - "y"^^<http://пример.испытание> . diff --git a/test/pretty/empty-anonymous-object.ttl b/test/pretty/empty-anonymous-object.ttl deleted file mode 100644 index f3b8d7f7..00000000 --- a/test/pretty/empty-anonymous-object.ttl +++ /dev/null @@ -1,4 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:s - eg:p [] . diff --git a/test/pretty/empty-list-object.ttl b/test/pretty/empty-list-object.ttl deleted file mode 100644 index b4045ec0..00000000 --- a/test/pretty/empty-list-object.ttl +++ /dev/null @@ -1,4 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:s - eg:list () . diff --git a/test/pretty/empty-list-subject-and-object.ttl b/test/pretty/empty-list-subject-and-object.ttl deleted file mode 100644 index 3b84980e..00000000 --- a/test/pretty/empty-list-subject-and-object.ttl +++ /dev/null @@ -1,4 +0,0 @@ -@prefix eg: <http://example.org/> . - -() - eg:list () . diff --git a/test/pretty/empty-list-subject.ttl b/test/pretty/empty-list-subject.ttl deleted file mode 100644 index 0610eb07..00000000 --- a/test/pretty/empty-list-subject.ttl +++ /dev/null @@ -1,4 +0,0 @@ -@prefix eg: <http://example.org/> . - -() - a eg:ExampleList . diff --git a/test/pretty/ext-named-blank.ttl b/test/pretty/ext-named-blank.ttl deleted file mode 100644 index 807d6313..00000000 --- a/test/pretty/ext-named-blank.ttl +++ /dev/null @@ -1,11 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:s - eg:p1 [ - == <http://example.com/vocab#SomeClass> ; - eg:name "object" - ] ; - eg:p2 [ - == eg:o ; - eg:name "o" - ] . diff --git a/test/pretty/graph-abbreviation.trig b/test/pretty/graph-abbreviation.trig deleted file mode 100644 index 8ec75f6e..00000000 --- a/test/pretty/graph-abbreviation.trig +++ /dev/null @@ -1,65 +0,0 @@ -@prefix : <http://example.org/> . -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . - -:graph { - :a - :b :c , - :d , - :e ; - :f :g , - :h ; - :i :j ; - :k :l . - - :s - a :Thing ; - :p1 :o1 , - [ - a :SubThing ; - :p2 :o2 - ] , [ - a :OtherSubThing ; - :p3 :o3 - ] ; - :p4 :o4 . - - [] - :isA :Blank . - - [] - :sameAs [] . - - [] - :blank [ - :nestedEmptyBlank [] ; - :nestedNonEmptyBlanks [ - rdf:value 1 - ] , [ - rdf:value 2 - ] - ] ; - :lists ( - 3 - 4 - ) . - - [] - :lists ( - 5 - 6 - ) . - - [] - :lists ( - [ - rdf:value 7 - ] [ - rdf:value 8 - ] - ) . -} - -:separateGraph { - :m - a :OtherThing . -} diff --git a/test/pretty/inline-blank-subject.ttl b/test/pretty/inline-blank-subject.ttl deleted file mode 100644 index 8f5de39c..00000000 --- a/test/pretty/inline-blank-subject.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix eg: <http://example.org/eg#> . - -[ - a eg:BlankSubject -] eg:isA eg:Blank . diff --git a/test/pretty/inline-blanks-and-lists.ttl b/test/pretty/inline-blanks-and-lists.ttl deleted file mode 100644 index c57482d3..00000000 --- a/test/pretty/inline-blanks-and-lists.ttl +++ /dev/null @@ -1,61 +0,0 @@ -@prefix eg: <http://example.org/eg#> . - -[ - a eg:TopBlank -] . - -[ - a [] -] . - -[ - a () -] . - -[] - a [] , - [] . - -[] - a [] , - () . - -[] - a () , - [] . - -[] - a () , - () . - -eg:s2 - a eg:SparseThing , - [] , - () , - [] , - [] , - () , - () , - <http://example.org/uri21> , - [] , - <http://example.org/uri22> , - () , - <http://example.org/uri23> , - [] , - eg:o21 , - [] , - eg:o22 , - () , - eg:o23 . - -eg:s3 - a eg:Thing ; - eg:p1 eg:o1 , - [ - a eg:SubThing ; - eg:p2 eg:o2 - ] , [ - a eg:OtherSubThing ; - eg:p3 eg:o3 - ] ; - eg:p4 eg:o4 . diff --git a/test/pretty/inline-list-subject.ttl b/test/pretty/inline-list-subject.ttl deleted file mode 100644 index a3f8ac18..00000000 --- a/test/pretty/inline-list-subject.ttl +++ /dev/null @@ -1,6 +0,0 @@ -@prefix eg: <http://example.org/eg#> . - -( - eg:item1 - eg:item2 -) eg:isA eg:List . diff --git a/test/pretty/langtags.ttl b/test/pretty/langtags.ttl deleted file mode 100644 index 29d7e2d4..00000000 --- a/test/pretty/langtags.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:s - eg:p "eh?"@en-ca , - "hä?"@de . diff --git a/test/pretty/list-in-object.ttl b/test/pretty/list-in-object.ttl deleted file mode 100644 index ce887157..00000000 --- a/test/pretty/list-in-object.ttl +++ /dev/null @@ -1,10 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:s - eg:p [ - eg:list ( - "apple" - "banana" - "cherry" - ) - ] . diff --git a/test/pretty/list-object.ttl b/test/pretty/list-object.ttl deleted file mode 100644 index 735d9df6..00000000 --- a/test/pretty/list-object.ttl +++ /dev/null @@ -1,8 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:s - eg:list ( - "apple" - "banana" - "cherry" - ) . diff --git a/test/pretty/list-subject.ttl b/test/pretty/list-subject.ttl deleted file mode 100644 index 927f56f3..00000000 --- a/test/pretty/list-subject.ttl +++ /dev/null @@ -1,7 +0,0 @@ -@prefix eg: <http://example.org/> . - -( - "apple" - "banana" - "cherry" -) a eg:ExampleList . diff --git a/test/pretty/local-name-escapes.ttl b/test/pretty/local-name-escapes.ttl deleted file mode 100644 index 91c3905d..00000000 --- a/test/pretty/local-name-escapes.ttl +++ /dev/null @@ -1,4 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:s - eg:p eg:local\'\!\#\$\%\&\(\)\*\+\,\/\;\=\?\@\~ . diff --git a/test/pretty/long-string-escapes.ttl b/test/pretty/long-string-escapes.ttl deleted file mode 100644 index 435e3d1a..00000000 --- a/test/pretty/long-string-escapes.ttl +++ /dev/null @@ -1,4 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:s - eg:p """\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b \u000B\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F"'\\\u007F""" . diff --git a/test/pretty/long-string-quotes.ttl b/test/pretty/long-string-quotes.ttl deleted file mode 100644 index aceaecda..00000000 --- a/test/pretty/long-string-quotes.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:s - eg:p1 """Unescaped "quotes" within""" ; - eg:p2 """Trickier ""\"case""\"""" . diff --git a/test/pretty/manifest.ttl b/test/pretty/manifest.ttl deleted file mode 100644 index 69b951af..00000000 --- a/test/pretty/manifest.ttl +++ /dev/null @@ -1,213 +0,0 @@ -@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> - <#inline-blank-subject> - <#inline-blanks-and-lists> - <#inline-list-subject> - <#langtags> - <#list-in-object> - <#list-object> - <#list-subject> - <#local-name-escapes> - <#long-string-escapes> - <#long-string-quotes> - <#many-objects> - <#named-graph> - <#nested-list-object> - <#relative-uris> - <#short-string-escapes> - <#uri-escapes> - <#nested-list-subject> - ) . - -<#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> . - -<#inline-blank-subject> - a rdft:TestTurtleEval ; - mf:action <inline-blank-subject.ttl> ; - mf:name "inline-blank-subject" ; - mf:result <inline-blank-subject.ttl> . - -<#inline-blanks-and-lists> - a rdft:TestTurtleEval ; - mf:action <inline-blanks-and-lists.ttl> ; - mf:name "inline-blanks-and-lists" ; - mf:result <inline-blanks-and-lists.ttl> . - -<#inline-list-subject> - a rdft:TestTurtleEval ; - mf:action <inline-list-subject.ttl> ; - mf:name "inline-list-subject" ; - mf:result <inline-list-subject.ttl> . - -<#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> . - -<#list-subject> - a rdft:TestTurtleEval ; - mf:action <list-subject.ttl> ; - mf:name "list-subject" ; - mf:result <list-subject.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> . - -<#nested-list-subject> - a rdft:TestTurtleEval ; - mf:action <nested-list-subject.ttl> ; - mf:name "nested-list-subject" ; - mf:result <nested-list-subject.ttl> . - -<#relative-uris> - a rdft:TestTurtleEval ; - mf:action <relative-uris.ttl> ; - mf:name "relative-uris" ; - mf:result <relative-uris.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> . diff --git a/test/pretty/many-objects.ttl b/test/pretty/many-objects.ttl deleted file mode 100644 index 534741dd..00000000 --- a/test/pretty/many-objects.ttl +++ /dev/null @@ -1,9 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:s - eg:p1 "apple" , - "banana" , - "cherry" ; - eg:p2 "asparagus" , - "beet" , - "carrot" . diff --git a/test/pretty/named-graph.trig b/test/pretty/named-graph.trig deleted file mode 100644 index 5cd12f3b..00000000 --- a/test/pretty/named-graph.trig +++ /dev/null @@ -1,8 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:g { - eg:s - eg:p [ - a eg:Object - ] . -} diff --git a/test/pretty/nested-list-object.ttl b/test/pretty/nested-list-object.ttl deleted file mode 100644 index d2177ba3..00000000 --- a/test/pretty/nested-list-object.ttl +++ /dev/null @@ -1,12 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:s - eg:list ( - ( - eg:l1e1 - eg:l1e2 - ) ( - eg:l2e1 - eg:l2e2 - ) - ) . diff --git a/test/pretty/nested-list-subject.ttl b/test/pretty/nested-list-subject.ttl deleted file mode 100644 index 128197c0..00000000 --- a/test/pretty/nested-list-subject.ttl +++ /dev/null @@ -1,11 +0,0 @@ -@prefix eg: <http://example.org/> . - -( - ( - eg:l1e1 - eg:l1e2 - ) ( - eg:l2e1 - eg:l2e2 - ) -) a eg:ExampleList . diff --git a/test/pretty/relative-uris.ttl b/test/pretty/relative-uris.ttl deleted file mode 100644 index 397c7cf7..00000000 --- a/test/pretty/relative-uris.ttl +++ /dev/null @@ -1,2 +0,0 @@ -<http://example.org/s> - <http://example.org/p> <manifest.ttl> . diff --git a/test/pretty/short-string-escapes.ttl b/test/pretty/short-string-escapes.ttl deleted file mode 100644 index 0665e814..00000000 --- a/test/pretty/short-string-escapes.ttl +++ /dev/null @@ -1,4 +0,0 @@ -@prefix eg: <http://example.org/> . - -eg:s - eg:p "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\u000B\f\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F\\\u007F" . diff --git a/test/pretty/uri-escapes.ttl b/test/pretty/uri-escapes.ttl deleted file mode 100644 index 09ced38a..00000000 --- a/test/pretty/uri-escapes.ttl +++ /dev/null @@ -1,2 +0,0 @@ -<http://example.org/s> - <http://example.org/p> <http://example.org/\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F!\u0022#$%&'()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\u005C]\u005E_\u0060abcdefghijklmnopqrstuvwxyz\u007B\u007C\u007D~\u007F> . |