From 59fb1d126523c8a46ded7c8607fe1e9d7de40daf Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 26 Apr 2021 14:07:13 +0530 Subject: Test if scm->yaml escapes hyphen characters. * tests/yaml.scm ("strings with hyphen characters should be escaped"): New test. --- tests/yaml.scm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') 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") -- cgit v1.2.3