aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-pretty.ttl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-20 00:36:21 +0000
committerDavid Robillard <d@drobilla.net>2012-02-20 00:36:21 +0000
commit192508f36451afd1cd5f74ea73f29de9d43308d4 (patch)
tree7a4644ff1b6dc0646fbe621a07447620fe32beb7 /tests/test-pretty.ttl
parentd0fa3173576d5fe814e725778056ada17dee2673 (diff)
downloadserd-192508f36451afd1cd5f74ea73f29de9d43308d4.tar.gz
serd-192508f36451afd1cd5f74ea73f29de9d43308d4.tar.bz2
serd-192508f36451afd1cd5f74ea73f29de9d43308d4.zip
Implement pretty-printing for collections.
git-svn-id: http://svn.drobilla.net/serd/trunk@305 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'tests/test-pretty.ttl')
-rw-r--r--tests/test-pretty.ttl44
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/test-pretty.ttl b/tests/test-pretty.ttl
new file mode 100644
index 00000000..4eb7204f
--- /dev/null
+++ b/tests/test-pretty.ttl
@@ -0,0 +1,44 @@
+@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