You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add idempotent mode for script tests. Currently a test such as simple.sml has a corresponding simple.sml.out file. With this change, the script would be simple.smli and the output would be simple.smli (in another directory). The test succeeds if the two files are identical.
The text was updated successfully, but these errors were encountered:
julianhyde
changed the title
Add idempotent mode for script tests
Idempotent mode for script tests
Jul 29, 2023
To date, scripts had .sml suffix and were accompanied by a
reference log with .sml.out suffix; with this change, scripts
may have a .smli suffix, and such scripts can have expected
output interleaved, and therefore no reference file is needed.
The expected output is on lines prefixed '> ', and is ignored
when reading commands from the file.
If the script is successful, the generated .smli file will
match the source .smli file; if the generated file contains
the correct output, you should copy the generated file, so
that it becomes the new source.
Idempotent scripts are easier to read (the expected output
is right there) and merge (you can inspect and manually merge
expected output, rather than re-generating the output and
hoping for the best).
Fixeshydromatic#198
Add idempotent mode for script tests. Currently a test such as
simple.sml
has a correspondingsimple.sml.out
file. With this change, the script would besimple.smli
and the output would besimple.smli
(in another directory). The test succeeds if the two files are identical.The text was updated successfully, but these errors were encountered: