Skip Menu |

This queue is for tickets about the Test-Singleton CPAN distribution.

Report information
The Basics
Id: 28640
Status: new
Priority: 0/
Queue: Test-Singleton

People
Owner: Nobody in particular
Requestors: x.test-singleton-bug-report-20070802 [...] chatterjee.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 1.0
  • 1.01
  • 1.02
  • 1.03
Fixed in: (no value)



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.