| Age | Commit message (Collapse) | Author |
|
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.
|
|
|
|
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.
|
|
|
|
file: should be followed by three slashes, not just one.
|
|
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.
|
|
* tests/reader.scm ("Normalize array of File arrays type formal
output"): Replace normalize-formal-input with normalize-formal-output.
|
|
* 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.
|
|
* 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.
|
|
* ravanan/reader.scm (coerce-type): Handle coercion of number to
number.
* tests/reader.scm: New file.
|