Closed zebralt closed 6 years ago
Good job ! Feel free to delete the branch and work on master.
However test-blocks.rock
and test-blocks-2.rock
don't seem to work anymore.
I'm happy runtests.py
is so useful.
Since we're on the topic of tests, runtests.py
is not a cross-platform implementation.
Maybe you could put the expected output in one file for each input file (in a test
directory) and write a more platform-agnostic test program.
And to be able to add tests easily, you could put the list of tuples (input, output)
in a separate file too, so the test implementation doesn't have to be modified every time a new feature is put into the project and a new test is required to test it.
I don't have a Unix on hand, don't blame me. What's not working ?
I'll put the expected output out of the file though. Good idea, give me a few hours.
As the title says. Let's see what exactly a pull request does. But seriously, I implemented the conditional operators. They work, but they suffer from the same reducing problem as arithmetic expressions. This will need to be addressed at some point. But for now, and since the spec does not detail complex expressions, we can do with simple ones.