about summary refs log tree commit diff
path: root/tests/reader.scm
AgeCommit message (Collapse)Author
4 daystests: Expect file:///foo/bar, not file:/foo/bar.Arun Isaac
file: should be followed by three slashes, not just one.
4 daystests: 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.