Brainduck icon indicating copy to clipboard operation
Brainduck copied to clipboard

Compare BF code to make sure it produces the same

Open Zomis opened this issue 9 years ago • 1 comments

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 avatar Oct 11 '15 18:10 Zomis

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)

Zomis avatar Oct 17 '15 22:10 Zomis