summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArun Isaac2021-04-26 14:07:13 +0530
committerArun Isaac2021-04-26 14:07:13 +0530
commit59fb1d126523c8a46ded7c8607fe1e9d7de40daf (patch)
treee7e3184b80cb0ee2edd3e1a12f7416e2b4c82f30 /tests
parentcc36e190808522db39f9980942cf28fd4660a9ee (diff)
downloadccwl-59fb1d126523c8a46ded7c8607fe1e9d7de40daf.tar.gz
ccwl-59fb1d126523c8a46ded7c8607fe1e9d7de40daf.tar.lz
ccwl-59fb1d126523c8a46ded7c8607fe1e9d7de40daf.zip
Test if scm->yaml escapes hyphen characters.
* tests/yaml.scm ("strings with hyphen characters should be escaped"): New test.
Diffstat (limited to 'tests')
-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")