aboutsummaryrefslogtreecommitdiff
path: root/t/locus.t
diff options
context:
space:
mode:
Diffstat (limited to 't/locus.t')
-rw-r--r--t/locus.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/locus.t b/t/locus.t
index a08280b..19fc8cc 100644
--- a/t/locus.t
+++ b/t/locus.t
@@ -3,9 +3,12 @@ use strict;
use Test;
use App::Beam::Config::Locus;
-plan(tests => 7);
+plan(tests => 10);
my $loc = new App::Beam::Config::Locus;
+ok($loc->format, '');
+ok($loc->format('test', 'message'), 'test message');
+
$loc->add('foo', 10);
ok($loc->format, "foo:10");
@@ -17,6 +20,7 @@ ok($loc->format, "foo:10-13");
$loc->add('foo', 24);
$loc->add('foo', 28);
ok($loc->format, "foo:10-13,24,28");
+ok($loc->format('test', 'message'), "foo:10-13,24,28: test message");
$loc->add('bar', 1);
$loc->add('baz', 8);

Return to:

Send suggestions and report system problems to the System administrator.