aboutsummaryrefslogtreecommitdiffstats
path: root/test/good/test-pretty.ttl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-08-12 22:28:59 -0400
committerDavid Robillard <d@drobilla.net>2022-01-28 21:57:07 -0500
commit1409f161793a289819df1f31eccb579b71f45475 (patch)
tree4076c291a397f0a0a2ea560305ee87c47810df33 /test/good/test-pretty.ttl
parent6ffe331cfc8af0735b263ab7af6f84b1b4418102 (diff)
downloadserd-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/test-pretty.ttl')
-rw-r--r--test/good/test-pretty.ttl44
1 files changed, 0 insertions, 44 deletions
diff --git a/test/good/test-pretty.ttl b/test/good/test-pretty.ttl
deleted file mode 100644
index 4eb7204f..00000000
--- a/test/good/test-pretty.ttl
+++ /dev/null
@@ -1,44 +0,0 @@
-@prefix : <http://example.org/> .
-
-() :isA :List .
-
-[] :isA :Blank .
-
-() :sameAs () .
-
-[] :sameAs [] .
-
-(
- "apple"
- "banana"
- "pear"
-) a :List .
-
-(
- (:a :b)
- (:c :d)
-) a :List .
-
-[]
- :list (
- "apple"
- "banana"
- "pear"
- ) .
-
-[]
- :a :b , :c , :d .
-
-[]
- :a [
- :b :c ;
- :d :e ;
- ] , [
- :f :g
- ] .
-
-[]
- :list (
- [ a :Apple ]
- [ a :Banana ]
- ) . \ No newline at end of file