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/conf/fail.t | |
parent | d681c49c3229265ab29621430a64606165629c9b (diff) | |
download | colorize-46921f49f5e5e68f75a0d08671147ea4edcc8b0b.tar.gz colorize-46921f49f5e5e68f75a0d08671147ea4edcc8b0b.tar.bz2 |
Allow for background color rainbow mode
Diffstat (limited to 't/conf/fail.t')
-rwxr-xr-x | t/conf/fail.t | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/t/conf/fail.t b/t/conf/fail.t index 9e16a49..0a16f8e 100755 --- a/t/conf/fail.t +++ b/t/conf/fail.t @@ -12,7 +12,7 @@ use IPC::Open3 qw(open3); use Symbol qw(gensym); use Test::More; -my $tests = 8; +my $tests = 10; my $run_program_fail = sub { @@ -39,14 +39,16 @@ SKIP: { my $infile = $write_to_tmpfile->(''); my @set = ( - [ 'attr=:', 'attr conf option must be provided a string' ], - [ 'attr=bold:underscore', 'attr conf option must have strings separated by ,' ], - [ 'attr=b0ld', 'attr conf option attribute \'b0ld\' is not valid' ], - [ 'attr=b0ld,underscore', 'attr conf option attribute \'b0ld\' is not valid' ], # handle comma - [ 'attr=bold,bold', 'attr conf option has attribute \'bold\' twice or more' ], - [ 'exclude-random=random', 'exclude-random conf option must be provided a plain color' ], - [ 'omit-color-empty=unsure', 'omit-color-empty conf option is not valid' ], - [ 'rainbow-fg=unsure', 'rainbow-fg conf option is not valid' ], + [ 'attr=:', 'attr conf option must be provided a string' ], + [ 'attr=bold:underscore', 'attr conf option must have strings separated by ,' ], + [ 'attr=b0ld', 'attr conf option attribute \'b0ld\' is not valid' ], + [ 'attr=b0ld,underscore', 'attr conf option attribute \'b0ld\' is not valid' ], # handle comma + [ 'attr=bold,bold', 'attr conf option has attribute \'bold\' twice or more' ], + [ 'exclude-random=random', 'exclude-random conf option must be provided a plain color' ], + [ 'omit-color-empty=unsure', 'omit-color-empty conf option is not valid' ], + [ 'rainbow-fg=unsure', 'rainbow-fg conf option is not valid' ], + [ 'rainbow-bg=unsure', 'rainbow-bg conf option is not valid' ], + [ "rainbow-fg=yes\nrainbow-bg=no", 'mutually exclusive' ], ); foreach my $set (@set) { open(my $fh, '>', $conf_file) or die "Cannot open `$conf_file' for writing: $!\n"; |