summaryrefslogtreecommitdiffstats
path: root/t/005-object.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-04-30 20:06:11 -0500
committerJesse Luehrs <doy@tozt.net>2010-04-30 20:09:40 -0500
commitddd601047a76fb519d4acba4c59d77ebfde1fa6e (patch)
tree2a5840e61ce7a6868d522015ddc74c0f938d9be5 /t/005-object.t
parentce489a3dcdcd8dcc1dec85b92698e0b94c85ca38 (diff)
downloadcarp-always-color-ddd601047a76fb519d4acba4c59d77ebfde1fa6e.tar.gz
carp-always-color-ddd601047a76fb519d4acba4c59d77ebfde1fa6e.zip
only color the actual warning/error
also clean up a couple more edge cases
Diffstat (limited to 't/005-object.t')
-rw-r--r--t/005-object.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/005-object.t b/t/005-object.t
new file mode 100644
index 0000000..3a88dd3
--- /dev/null
+++ b/t/005-object.t
@@ -0,0 +1,10 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More tests => 1;
+
+use Carp::Always::Color;
+
+my $err = bless({}, 'My::Error::Class');
+eval { die $err };
+is($@, $err, "exception objects aren't affected");