summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/yaml.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/yaml.scm b/tests/yaml.scm
index 11e5c23..073f1e5 100644
--- a/tests/yaml.scm
+++ b/tests/yaml.scm
@@ -29,4 +29,9 @@
 bar: {}
 ")
 
+(test-equal "strings with hyphen characters should be escaped"
+  "- \"-1\"
+"
+  (scm->yaml-string #("-1")))
+
 (test-end "yaml")