diff options
author | Arun Isaac | 2021-04-26 14:07:51 +0530 |
---|---|---|
committer | Arun Isaac | 2021-04-26 14:07:51 +0530 |
commit | e64acfac83e5d4150af630e6b0cc1ffc42279405 (patch) | |
tree | c6c5ae68b2e7f9e38bf106fa3ea0db9fc098d52a /tests | |
parent | 59fb1d126523c8a46ded7c8607fe1e9d7de40daf (diff) | |
download | ccwl-e64acfac83e5d4150af630e6b0cc1ffc42279405.tar.gz ccwl-e64acfac83e5d4150af630e6b0cc1ffc42279405.tar.lz ccwl-e64acfac83e5d4150af630e6b0cc1ffc42279405.zip |
Escape asterisk characters in scm->yaml.
* ccwl/yaml.scm (display-atom): Escape asterisk characters.
* tests/yaml.scm ("strings with asterisk characters should be
escaped"): New test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/yaml.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/yaml.scm b/tests/yaml.scm index 073f1e5..70c6cea 100644 --- a/tests/yaml.scm +++ b/tests/yaml.scm @@ -34,4 +34,9 @@ bar: {} " (scm->yaml-string #("-1"))) +(test-equal "strings with asterisk characters should be escaped" + "- \"*foo\" +" + (scm->yaml-string #("*foo"))) + (test-end "yaml") |