diff options
Diffstat (limited to 't/Nagios-Plugin-01.t')
-rw-r--r-- | t/Nagios-Plugin-01.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/Nagios-Plugin-01.t b/t/Nagios-Plugin-01.t index 0ae2113..9de5009 100644 --- a/t/Nagios-Plugin-01.t +++ b/t/Nagios-Plugin-01.t | |||
@@ -1,3 +1,4 @@ | |||
1 | # Nagios::Plugin original test cases | ||
1 | 2 | ||
2 | use strict; | 3 | use strict; |
3 | use Test::More tests => 12; | 4 | use Test::More tests => 12; |
@@ -17,7 +18,7 @@ $p->shortname("PAGESIZE"); | |||
17 | is($p->shortname, "PAGESIZE", "shortname set correctly"); | 18 | is($p->shortname, "PAGESIZE", "shortname set correctly"); |
18 | 19 | ||
19 | $p = Nagios::Plugin->new; | 20 | $p = Nagios::Plugin->new; |
20 | ok(! defined $p->shortname, "shortname should be unset on new"); | 21 | is($p->shortname, "NAGIOS-PLUGIN-01", "shortname should default on new"); |
21 | 22 | ||
22 | $p = Nagios::Plugin->new( shortname => "SIZE" ); | 23 | $p = Nagios::Plugin->new( shortname => "SIZE" ); |
23 | is($p->shortname, "SIZE", "shortname set correctly on new"); | 24 | is($p->shortname, "SIZE", "shortname set correctly on new"); |