koopashell
Sophisticated shell testing framework™
red or green?
usage
koopashell [assertname] value
deepEqual
is the default for assertname
. for a reference see: https://www.npmjs.com/package/assert
koopashell will compare the stdin input with the specified strings using the assertname
function.
examples
echo "incabell" | koopashell "incabell\n"ok
echo "incabell" | koopashell equal "incabell\n"ok
echo "incabell" | koopashell notEqual "jona"ok
echo "incabell" | koopashell equal "jona"assert.js:87 throw new assert.AssertionError