Subject: | is_singleton runs 4 separate tests, instead of 1 |
The synopsis in the Test::Singleton docs read as follow:
use Test::More tests => 1;
use Test::Singleton;
is_singleton( "Some::Class", "new", "instance" );
But as far as I can tell, is_singleton always runs 4 separate tests, and
not 1 (as indicated in the test initialization in this example).
Running an example as suggested in the docs will cause the test harness
to complain that 4 tests were run, when it was expecting only 1.
is_singleton should return a single consolidated "ok" / "not ok" test
result. Anything else is really confusing.