diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-06-14 03:21:42 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-06-14 03:21:42 -0500 |
commit | b6f9cf0cd8b90c31a024581d524cf513a5446c93 (patch) | |
tree | a8dcdf7fefa4eb50973263dda9d46a3b46c872e2 /t/001-term.t | |
parent | 90bf809d0662a2f87d63a4453e0cd74c101418a7 (diff) | |
download | carp-always-color-b6f9cf0cd8b90c31a024581d524cf513a5446c93.tar.gz carp-always-color-b6f9cf0cd8b90c31a024581d524cf513a5446c93.zip |
update dzil (and other packaging) stuff
Diffstat (limited to 't/001-term.t')
-rw-r--r-- | t/001-term.t | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/t/001-term.t b/t/001-term.t deleted file mode 100644 index b93af1e..0000000 --- a/t/001-term.t +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env perl -use strict; -use warnings; -use Test::More; -BEGIN { - eval "use IO::Pty::Easy;"; - plan skip_all => "IO::Pty::Easy is required for this test" if $@; - plan tests => 5; -} - -sub output_is { - local $Test::Builder::Level = $Test::Builder::Level + 1; - my ($script, $expected, $desc) = @_; - my $pty = IO::Pty::Easy->new; - $pty->spawn("$^X", "-e", $script); - is($pty->read, $expected, $desc); -} - -output_is(<<EOF, - use Carp::Always::Color::Term; - warn "foo"; -EOF - "\e[33mfoo\e[m at -e line 2\n", - "simple warns work"); - -output_is(<<EOF, - use Carp::Always::Color::Term; - sub foo { - warn "foo"; - } - foo(); -EOF - "\e[33mfoo\e[m at -e line 3\n\tmain::foo() called at -e line 5\n", - "warns with a stacktrace work"); - -output_is(<<EOF, - use Carp::Always::Color::Term; - die "foo"; -EOF - "\e[31mfoo\e[m at -e line 2\n", - "simple dies work"); - -output_is(<<EOF, - use Carp::Always::Color::Term; - sub foo { - die "foo"; - } - foo(); -EOF - "\e[31mfoo\e[m at -e line 3\n\tmain::foo() called at -e line 5\n", - "dies with a stacktrace work"); - -{ local $TODO = "this is a Carp::Always bug"; -output_is(<<EOF, - use Carp::Always::Color::Term; - die "foo at bar line 23"; -EOF - "\e[31mfoo at bar line 23\e[m at -e line 2\n", - "weird messages work"); -} |