summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/yaml.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/yaml.scm b/tests/yaml.scm
new file mode 100644
index 0000000..767cdff
--- /dev/null
+++ b/tests/yaml.scm
@@ -0,0 +1,14 @@
+(use-modules (ccwl yaml)
+ (srfi srfi-64))
+
+(test-begin "yaml")
+
+(test-equal "dictionary entries with empty arrays and dictionaries for values must render on the same line"
+ (scm->yaml-string
+ '((foo . #())
+ (bar)))
+ "foo: []
+bar: {}
+")
+
+(test-end "yaml")