diff options
author | Steven Schubiger <stsc@refcnt.org> | 2019-09-17 23:14:18 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2019-09-17 23:14:18 +0200 |
commit | 9082b6aa7b7bd32db92ed1bd8ebe31e836147704 (patch) | |
tree | 1267f3fae5576a73bd969cd77480713e4e1da7ac /t/conf/parse | |
parent | 69f07b58527f4a75d67443232a34f944a65ae423 (diff) | |
download | colorize-9082b6aa7b7bd32db92ed1bd8ebe31e836147704.tar.gz colorize-9082b6aa7b7bd32db92ed1bd8ebe31e836147704.tar.bz2 |
parse_conf(): minor tweaks
- Parse lines with CRLF endings
- Separate the '#' sign from the option name
Diffstat (limited to 't/conf/parse')
-rwxr-xr-x | t/conf/parse/fail.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/conf/parse/fail.t b/t/conf/parse/fail.t index ea267f8..d2988e4 100755 --- a/t/conf/parse/fail.t +++ b/t/conf/parse/fail.t @@ -12,7 +12,7 @@ use IPC::Open3 qw(open3); use Symbol qw(gensym); use Test::More; -my $tests = 8; +my $tests = 9; my $run_program_fail = sub { @@ -47,6 +47,7 @@ SKIP: { [ 'exclude-random1=black', 'option \'exclude-random1\' not recognized' ], [ 'omit-color-empty1=yes', 'option \'omit-color-empty1\' not recognized' ], [ 'attr', 'option \'attr\' not followed by =' ], + [ 'attr#', 'option \'attr\' not followed by =' ], [ 'attr bold', 'option \'attr\' not followed by =' ], [ "color=$chars_exceed", 'line 1 exceeds maximum of' ], ); |