containers icon indicating copy to clipboard operation
containers copied to clipboard

FOI: bats-assert

Open yarikoptic opened this issue 5 years ago • 1 comments

https://github.com/ztombol/bats-assert provides a nice collection of assertion helpers to be used in bats, similar to the ad-hoc ones I started to introduce in #27 . Would be nice to migrate those to use the ones from bats-assert

TODO to the Debian maintainer of bats -- package bats-assert as well ;-)

yarikoptic avatar Aug 07 '19 02:08 yarikoptic

Ah, nice find.

assert_output --partial 'arg #1='

is much easier to remember and read than:

[ "${lines[0]}" = 'arg #1=' ]

mjtravers avatar Aug 07 '19 11:08 mjtravers