diff options
author | David Robillard <d@drobilla.net> | 2021-08-12 22:28:59 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-28 21:57:07 -0500 |
commit | 1409f161793a289819df1f31eccb579b71f45475 (patch) | |
tree | 4076c291a397f0a0a2ea560305ee87c47810df33 /test/good/pretty.trig | |
parent | 6ffe331cfc8af0735b263ab7af6f84b1b4418102 (diff) | |
download | serd-1409f161793a289819df1f31eccb579b71f45475.tar.gz serd-1409f161793a289819df1f31eccb579b71f45475.tar.bz2 serd-1409f161793a289819df1f31eccb579b71f45475.zip |
Fix pretty-printing nested empty lists and add 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 from a model 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/good/pretty.trig')
-rw-r--r-- | test/good/pretty.trig | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/test/good/pretty.trig b/test/good/pretty.trig deleted file mode 100644 index 140769ce..00000000 --- a/test/good/pretty.trig +++ /dev/null @@ -1,98 +0,0 @@ -@prefix : <http://example.org/> . -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . - -:a - :b :c , - :d , - :e ; - :f :g , - :h . - -( - 1 -) - :isA :List . - -[] - :isA :Blank . - -( - 2 -) - :sameAs ( - 2 - ) . - -[] - :sameAs [] . - -( - 1 - 2 -) - a :List ; - rdf:value 3 . - -( - ( - 3 - ) - ( - 4 - ) -) - a :NestedList ; - :sum 7 . - -[ - a :BlankSubject -] - a rdf:Resource . - -[ - a :BlankSubject -] . - -[] - :blank [ - :nestedEmptyBlank [] ; - :nestedNonEmptyBlanks [ - rdf:value 1 - ] , [ - rdf:value 2 - ] - ] ; - :lists ( - 3 - 4 - ) , ( - 5 - 6 - ) , ( - [ - rdf:value 7 - ] - [ - rdf:value 8 - ] - ) . - -:s - a :Thing ; - :predicate1 :object1 , - [ - a :SubThing ; - :predicate2 :object2 - ] , [ - a :OtherSubThing ; - :p3 :o3 - ] ; - :p4 :o4 . - -eg:graph { - :a - :b :c ; - :d [ - :e :f - ] . -} |