summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2021-07-27ccwl: Make syntax-lambda** more like lambda**.Arun Isaac
I have tripped up several times on the differences between lambda** and syntax-lambda**. No longer! Making syntax-lambda** as close as possible to lambda** makes the code much more readable and align better with common sense. * ccwl/utils.scm (syntax-lambda**): Do not ignore the first identifier. Accept multiple values as arguments, not a single syntax object. * ccwl/ccwl.scm (command): Update use of syntax-lambda**. * tests/utils.scm ("syntax-lambda**", "syntax-lambda** with default values"): Update tests.
2021-07-20ccwl: Set default value of lambda** n-ary arguments to '().Arun Isaac
* ccwl/utils.scm (lambda**): Set default value of lambda** n-ary arguments to the empty list. Document this in the docstring. * tests/utils.scm ("default value of lambda** unary argument should be #f", "default value of lambda** n-ary argument should be the empty list"): New tests.
2021-07-20ccwl: Document syntax-lambda** support for default arguments.Arun Isaac
* ccwl/utils.scm (syntax-lambda**): Add example to docstring documenting support for default arguments. * tests/utils.scm ("syntax-lambda** with default values"): New test.
2021-07-20ccwl: Support default values for arguments in lambda**.Arun Isaac
* ccwl/utils.scm (lambda**): Support default values for arguments, both unary and n-ary. * tests/utils.scm ("lambda** with default values"): New test.
2021-07-20tests: Add tests for ccwl/utils.scm.Arun Isaac
* tests/utils.scm: New file. * Makefile.am (SCM_TESTS): Register it.
2021-07-19tests: Fix order of arguments to test-equal.Arun Isaac
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.
2021-07-19tests: Fix indentation.Arun Isaac
* tests/ccwl.scm ("stdin input should not have inputBinding"): Fix indentation.
2021-07-02tests: Ensure stdin input has no inputBinding.Arun Isaac
* tests/ccwl.scm: Import (ccwl ccwl) ("stdin input should not have inputBinding"): New test.
2021-07-02tests: Remove unnecessary import.Arun Isaac
* tests/ccwl.scm: Do not import (srfi srfi-71).
2021-04-26Escape asterisk characters in scm->yaml.Arun Isaac
* ccwl/yaml.scm (display-atom): Escape asterisk characters. * tests/yaml.scm ("strings with asterisk characters should be escaped"): New test.
2021-04-26Test if scm->yaml escapes hyphen characters.Arun Isaac
* tests/yaml.scm ("strings with hyphen characters should be escaped"): New test.
2021-04-26Remove deprecated break-pair tests.Arun Isaac
* tests/ccwl.scm (break-pair): Delete function. ("break-pair", "break-pair: check last elemet handling"): Delete tests.
2021-04-17Add copyright section to test files.Arun Isaac
* tests/ccwl.scm, tests/yaml.scm: Add copyright section.
2021-02-27Add break-pair utility.Arun Isaac
* ccwl/ccwl.scm (break-pair): New function. * tests/ccwl.scm: New file. * tests/ccwl.scm ("break-pair", "break-pair: check last elemet handling"): New test cases.
2021-02-27Display dictionary entries with empty values on the same line.Arun Isaac
* 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.