about summary refs log tree commit diff
path: root/tests/reader.scm
AgeCommit message (Collapse)Author
4 daystests: Test reader end-to-end, don't test specific functions.Arun Isaac
This makes the tests less fragile—that is, less subject to breakage due to code refactoring. And, we can be more confident that the reader actually works end-to-end.
4 daysreader: Resolve type ambiguities in default inputs.Arun Isaac
8 daysreader: Resolve YAML inputs file type ambiguities.Arun Isaac
Resolve YAML inputs file type ambiguities by reading them along with the workflow file and using the workflow input types to guide their type coercion.
8 daysreader: Use CWL types in type coercion.Arun Isaac
2025-11-16tests: Expect file:///foo/bar, not file:/foo/bar.Arun Isaac
file: should be followed by three slashes, not just one.
2025-11-16tests: Canonicalize JSON objects to compare them.Arun Isaac
Compare JSON objects by canonicalizing them and then using test-equal. This is better than using json=? and test-assert since this passes on the actual and expected values to the SRFI-64 runner.
2025-03-18tests: Fix typo in test.Arun Isaac
* tests/reader.scm ("Normalize array of File arrays type formal output"): Replace normalize-formal-input with normalize-formal-output.
2025-03-18tests: Tolerate only path or location in File type inputs.Arun Isaac
* tests/reader.scm: Import (ice-9 filesystem), (web uri), (ravanan work command-line-tool) and (ravanan work utils). (normalize-input): New variable. ("Normalize inputs with only location", "Normalize inputs with only path"): New tests.
2025-01-22reader: Normalize File array type formals too.Arun Isaac
* ravanan/reader.scm: Import (ravanan work types). (some-file-type?): New function. (normalize-formal-input, normalize-formal-output): Normalize File array type formals too. * tests/reader.scm: Import (srfi srfi-1) and (ice-9 match). (normalize-formal-input, normalize-formal-output): New variables. (json=?): New function. ("Normalize File type formal input", "Normalize File array type formal input", "Normalize array of File arrays type formal input", "Normalize File type formal output", "Normalize File array type formal output", "Normalize array of File arrays type formal output"): New tests.
2024-10-02reader: Handle coercion of number to number.Arun Isaac
* ravanan/reader.scm (coerce-type): Handle coercion of number to number. * tests/reader.scm: New file.