42 ms·
This looks nice! One thing I don't like from the examples is `eval`ing a string containing bash with assert[0], instead of using bash directly. Is it possible
by asymmetric 7y ago
This looks nice!
One thing I don't like from the examples is `eval`ing a string containing bash with assert[0], instead of using bash directly.
Is it possible to simply use `[` in tests?
[0]: https://github.com/Checksum/critic.sh/blob/bccf5b853409fcf44d95515e9431a625667e224e/examples/test.sh#L28 https://github.com/Checksum/critic.sh/blob/bccf5b853409fcf44...
- Karupan 7y agoSince the tests have to capture the return code and output of the expression, it has to be eval'd in the _test function, and hence the string. It will be interesting to figure out how this can be done though.