use File::Temp qw(tmpnam);
use Test::More;
-my $tests = 3;
+my $tests = 4;
plan tests => $tests;
print {$fh} "color=green\n";
close($fh);
- is(qx($program $infile), "\e[32mfoo\e[0m", 'color from config');
+ is(qx(printf %s "foo" | $program -), "\e[32mfoo\e[0m", 'color from config (stdin)');
+ is(qx($program $infile), "\e[32mfoo\e[0m", 'color from config (file)');
is(qx(printf %s "foo" | $program none/none), 'foo', 'read from stdin');
is(qx($program none/none $infile), 'foo', 'read from file');