Brainduck
Brainduck copied to clipboard
Compare BF code to make sure it produces the same
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
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)