1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#!/usr/bin/env bash
# shellcheck disable=2034
source test/setup
use Test::More
plan tests 6
pass 'This test always passes'
is 'foo' "foo" 'foo is foo'
ok "$(true)" 'true is true'
ok "$([ 123 -eq "$((61+62))" ])" 'Math works'
# shellcheck disable=2050
ok "$([[ ! team =~ I ]])" "There's no I in team"
# diag "A msg for stderr"
note "A msg for stdout"
expected=(line1 line2)
command_output=(line1 line2 )
cmp-array command_output expected "command output more"
|