X-Git-Url: http://git.refcnt.org/?a=blobdiff_plain;f=t%2Ffail.t;h=10378c412548fc694ad1e711dbf3c983b19d82fd;hb=dda0a5b10e4e29bc22672162f95cd053300c333f;hp=b152094cfb9567da764d454a1fad14fa09f2a285;hpb=52a7c4ca9ae542e8e768daaffed6e3122b71d503;p=colorize.git diff --git a/t/fail.t b/t/fail.t index b152094..10378c4 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 = 20; +my $tests = 25; my $run_program_fail = sub { @@ -40,6 +40,11 @@ SKIP: { my $dir = tempdir(CLEANUP => true); my @set = ( + [ '--attr=:', 'must be provided a string' ], + [ '--attr=bold:underscore', 'must have strings separated by ,' ], + [ '--attr=b0ld', 'attribute \'b0ld\' is not valid' ], + [ '--attr=b0ld,underscore', 'attribute \'b0ld\' is not valid' ], # handle comma + [ '--attr=bold,bold', 'has attribute \'bold\' twice or more' ], [ '--exclude-random=random', 'must be provided a plain color' ], [ '--clean --clean-all', 'mutually exclusive' ], [ '--clean file1 file2', 'more than one file' ],