bump version to 0.16
[gitmo/MooseX-Singleton.git] / t / 001-basic.t
index 78caa63..9cd90b0 100644 (file)
@@ -1,6 +1,6 @@
 use strict;
 use warnings;
-use Test::More tests => 15;
+use Test::More tests => 16;
 
 BEGIN {
     package MooseX::Singleton::Test;
@@ -43,6 +43,7 @@ $mst->add(bar => 5);
 is($mst->distinct_keys, 3, "added another key");
 
 my $mst2 = MooseX::Singleton::Test->instance;
+is($mst, $mst2, 'instances are the same object');
 isa_ok($mst2, 'MooseX::Singleton::Test', 'Singleton->instance returns a real instance');
 
 is($mst2->distinct_keys, 3, "keys from before");