Open dc-mak opened 1 month ago
With the additions of
I propose that, in addition to return codes, for a given files we have the ability to specify the expected output in a filename.expected
if we want to to use a script like this or use expect tests as stated above. A key feature of both is that tests can be auto-promoted when behaviour changes en masse
We don't want unnecessary duplication of C files, since any changes to syntax or semantics would need to be duplicated across multiple tests.
Perhaps if/when CN is a library, we can use some expect tests (including for tutorial. This would also be useful for checking the behaviour/output of tutorials once those are integrated.
A small example I made a while back is here: https://github.com/dc-mak/NumLin/tree/master/test