From: mike Date: Mon, 26 Feb 2007 14:56:26 +0000 (+0000) Subject: Fix expected numeric values of log-levels -- new levels are now one up X-Git-Tag: cpan_1_22~65 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=08e6e5fb1b3c721c7385893511a5682e6003d9cb;p=ZOOM-Perl-moved-to-github.git Fix expected numeric values of log-levels -- new levels are now one up the power list since ZOOM_Perl itself registers "zoom_check". --- diff --git a/t/27-logging.t b/t/27-logging.t index cbc9b6a..4415126 100644 --- a/t/27-logging.t +++ b/t/27-logging.t @@ -1,4 +1,4 @@ -# $Id: 27-logging.t,v 1.1 2005-12-21 16:58:36 mike Exp $ +# $Id: 27-logging.t,v 1.2 2007-02-26 14:56:26 mike Exp $ # Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl 27-logging.t' @@ -13,12 +13,12 @@ check_level("none", 0); check_level("none,debug", 2); check_level("none,warn", 4); check_level("none,warn,debug", 6); -check_level("none,zoom", 8192); +check_level("none,zoom", 16384); check_level("none,-warn", 0); check_level("", 2077); check_level("-warn", 2073); -check_level("zoom", 10269); -check_level("none,zoom,fruit", 24576); +check_level("zoom", 18461); +check_level("none,zoom,fruit", 49152); sub check_level { my($str, $expect) = @_;