summaryrefslogtreecommitdiffstats
path: root/t/02-html.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-09-04 12:03:26 -0500
committerJesse Luehrs <doy@tozt.net>2011-09-04 12:03:26 -0500
commita2a44a1e4da072193f3d2a165bc62f9907d5a964 (patch)
treed9061dcbaedda981cf642590d6c542aca5a739bd /t/02-html.t
parent05596e277d97bad8338f83b4da0f90e28521b3a6 (diff)
downloadcarp-always-color-a2a44a1e4da072193f3d2a165bc62f9907d5a964.tar.gz
carp-always-color-a2a44a1e4da072193f3d2a165bc62f9907d5a964.zip
remove test numbers
Diffstat (limited to 't/02-html.t')
-rw-r--r--t/02-html.t51
1 files changed, 0 insertions, 51 deletions
diff --git a/t/02-html.t b/t/02-html.t
deleted file mode 100644
index f51914d..0000000
--- a/t/02-html.t
+++ /dev/null
@@ -1,51 +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 => 4;
-}
-
-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::HTML;
- warn "foo";
-EOF
- "<span style=\"color:#880\">foo</span> at -e line 2\n",
- "simple warns work");
-
-output_is(<<EOF,
- use Carp::Always::Color::HTML;
- sub foo {
- warn "foo";
- }
- foo();
-EOF
- "<span style=\"color:#880\">foo</span> 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::HTML;
- die "foo";
-EOF
- "<span style=\"color:#800\">foo</span> at -e line 2\n",
- "simple dies work");
-
-output_is(<<EOF,
- use Carp::Always::Color::HTML;
- sub foo {
- die "foo";
- }
- foo();
-EOF
- "<span style=\"color:#800\">foo</span> at -e line 3\n\tmain::foo() called at -e line 5\n",
- "dies with a stacktrace work");