aboutsummaryrefslogtreecommitdiffstats
path: root/t/fail.t
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2024-07-28 17:04:36 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2024-07-28 17:04:36 +0200
commit46921f49f5e5e68f75a0d08671147ea4edcc8b0b (patch)
tree976e0702780ff80fe44e191c0d0c0e70bd35e587 /t/fail.t
parentd681c49c3229265ab29621430a64606165629c9b (diff)
downloadcolorize-46921f49f5e5e68f75a0d08671147ea4edcc8b0b.tar.gz
colorize-46921f49f5e5e68f75a0d08671147ea4edcc8b0b.tar.bz2
Allow for background color rainbow mode
Diffstat (limited to 't/fail.t')
-rwxr-xr-xt/fail.t8
1 files changed, 5 insertions, 3 deletions
diff --git a/t/fail.t b/t/fail.t
index c44cb7a..c587fb3 100755
--- a/t/fail.t
+++ b/t/fail.t
@@ -12,7 +12,7 @@ use IPC::Open3 qw(open3);
use Symbol qw(gensym);
use Test::More;
-my $tests = 29;
+my $tests = 31;
my $run_program_fail = sub
{
@@ -65,10 +65,12 @@ SKIP: {
[ 'random/default', 'cannot be combined with' ],
[ 'none/random', 'cannot be combined with' ],
[ 'default/random', 'cannot be combined with' ],
+ [ '--rainbow-fg --rainbow-bg', 'mutually exclusive' ],
+ [ 'green --rainbow-bg', 'background color required with' ],
[ 'white/none --rainbow-fg', 'cannot be used with --rainbow-fg' ],
- [ 'white/default --rainbow-fg', 'cannot be used with --rainbow-fg' ],
+ [ 'white/default --rainbow-bg', 'cannot be used with --rainbow-bg' ],
[ 'none/white --rainbow-fg', 'cannot be used with --rainbow-fg' ],
- [ 'default/white --rainbow-fg', 'cannot be used with --rainbow-fg' ],
+ [ 'default/white --rainbow-bg', 'cannot be used with --rainbow-bg' ],
);
foreach my $set (@set) {
ok($run_program_fail->($program, $set->[0], $set->[1]), $set->[1]);