diff options
author | Steven Schubiger <stsc@refcnt.org> | 2024-07-28 17:04:36 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2024-07-28 17:04:36 +0200 |
commit | 46921f49f5e5e68f75a0d08671147ea4edcc8b0b (patch) | |
tree | 976e0702780ff80fe44e191c0d0c0e70bd35e587 /t/fail.t | |
parent | d681c49c3229265ab29621430a64606165629c9b (diff) | |
download | colorize-46921f49f5e5e68f75a0d08671147ea4edcc8b0b.tar.gz colorize-46921f49f5e5e68f75a0d08671147ea4edcc8b0b.tar.bz2 |
Allow for background color rainbow mode
Diffstat (limited to 't/fail.t')
-rwxr-xr-x | t/fail.t | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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]); |