summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2008-11-26 15:01:00 -0500
committerdoy <doy@tozt.net>2008-11-26 15:01:00 -0500
commit6f980fb52125024b498f11db3276a0ec150a7efe (patch)
tree5de3676fa98f2da916e6687d82dca7a2a2a1357f
parent3d6978cfecf2d5b9abb078cafa4bf321a3783a1d (diff)
downloadlog-dispatch-channels-6f980fb52125024b498f11db3276a0ec150a7efe.tar.gz
log-dispatch-channels-6f980fb52125024b498f11db3276a0ec150a7efe.zip
can't seem to get Test::Deep to do what i want
-rw-r--r--dist.ini1
-rw-r--r--t/001-channels-and-outputs.t9
2 files changed, 3 insertions, 7 deletions
diff --git a/dist.ini b/dist.ini
index 2f67fe1..2d4ce6f 100644
--- a/dist.ini
+++ b/dist.ini
@@ -10,4 +10,3 @@ copyright_holder = Jesse Luehrs
Log::Dispatch = 0
Carp = 0
Test::More = 0
-Test::Deep = 0
diff --git a/t/001-channels-and-outputs.t b/t/001-channels-and-outputs.t
index 832af4d..bc85855 100644
--- a/t/001-channels-and-outputs.t
+++ b/t/001-channels-and-outputs.t
@@ -1,8 +1,7 @@
#!/usr/bin/env perl
use strict;
use warnings;
-use Test::More tests => 13;
-use Test::Deep;
+use Test::More tests => 15;
use Log::Dispatch::Channels;
use Log::Dispatch::Null;
@@ -27,12 +26,10 @@ for my $channel (1..3) {
isa_ok($logger->channel('1')->output('all'), 'Log::Dispatch::Null');
my $all_output = $logger->output('all');
-my $set = set();
for my $channel (1..3) {
- $set->add(shallow($logger->channel($channel)->output('all')));
+ is($all_output, $logger->channel($channel)->output('all'),
+ "output 'all' is shared with channel $channel");
}
-cmp_deeply([$all_output], $set,
- "output 'all' is shared between all channels");
is($logger->channel('3')->output('one_and_two'), undef,
"output 'one_and_two' isn't added to channel '3'");