Zomis / Brainduck

Brainfuck Interpreter in Java/Groovy, with a Groovy DSL
40 stars 1 forks source link

Compare BF code to make sure it produces the same #23

Open Zomis opened 8 years ago

Zomis commented 8 years ago

For refactoring purposes, test one BF code by making sure it produces the same output as another BF code

For example: $ testWith 'otherfile' which will look for otherfile.bf, run it, and will compare the output of the current code with that file

Zomis commented 8 years ago

Also add $ expected 'filename' to compare output with the contents of a file

Or add $ validator function or $ validator 'externalGroovyScript' that defines a boolean verify(String output) to validate that the BF code does what it is supposed to (if not using a whole bunch of asserts)