aboutsummaryrefslogtreecommitdiff
path: root/tests/yaml.scm
AgeCommit message (Expand)Author
2023-11-23tests: Bump copyright year.•••This was missed out on an earlier commit this year. * tests/yaml.scm: Bump copyright year. Arun Isaac
2023-11-17yaml: Serialize atomic dictionary values on the same line.•••* ccwl/yaml.scm (display-dictionary-entry): Serialize atomic values on the same line. * tests/yaml.scm ("dictionary keys that map to an atomic value must be serialized on the same line"): New test. Arun Isaac
2023-11-16yaml: Display arrays with a single atomic element on the same line.•••* ccwl/yaml.scm (atom?): New function. (display-dictionary-entry, scm->yaml): Display arrays with a single atomic element on the same line. * tests/yaml.scm ("strings with hyphen characters should be escaped", "strings with asterisk characters should be escaped"): Update tests with new behaviour. ("single element vectors must be serialized on the same line"): New test. Arun Isaac
2021-07-19tests: Fix order of arguments to test-equal.•••The expected value should be the first argument to test-equal. Getting this order wrong messes up the test logs. * tests/yaml.scm ("dictionary entries with empty arrays and dictionaries for values must render on the same line"): Fix order of arguments to test-equal. Arun Isaac
2021-04-26Escape 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. Arun Isaac
2021-04-26Test if scm->yaml escapes hyphen characters.•••* tests/yaml.scm ("strings with hyphen characters should be escaped"): New test. Arun Isaac
2021-04-17Add copyright section to test files.•••* tests/ccwl.scm, tests/yaml.scm: Add copyright section. Arun Isaac
2021-02-27Display dictionary entries with empty values on the same line.•••* ccwl/yaml.scm (display-dictionary-entry): If value is an empty array or dictionary, display it on the same line. (scm->yaml): Go to next line after printing empty array. * tests/yaml.scm: New file. * tests/yaml.scm ("dictionary entries with empty arrays and dictionaries for values must render on the same line"): New test case. Arun Isaac