purescm
Testing
Adding test cases
-
Create the test cases in
test/resources/purescript/src/PureScheme/Test
. Keep each module as small as possible and don't be afraid to create multiple modules. -
Run
python gen_tests.py
. This will compile the modules to Scheme and leave the output intest/resources/scheme
. -
Check the output for correctness.
-
You're done, you just added new test cases. Commit both the source files and the output files.
Moving/renaming/deleting modules
-
Make your changes to the PureScript source files.
-
Remove all the contents from
test/resources/scheme
. -
Run
python gen_tests.py
. -
Check the output for correctness.
-
Commit both the source files and the output files.