Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 32935
Status: resolved
Priority: 0/
Queue: Test-Unit-Lite

People
Owner: Nobody in particular
Requestors: brutal_smurf [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.08
Fixed in: (no value)



Subject: Test::Unit::TestSuite::new overwrites self reference type
Test::Unit::TestSuite::new overwrites self reference type. It sets its own reference type to $test. You should change this block elsif (defined $test and $test->isa('Test::Unit::TestCase')) { $class = ref $test ? ref $test : $test; $self->{units} = [ $test->list_tests ]; } To this: elsif (defined $test and $test->isa('Test::Unit::TestCase')) { $self->{units} = [ $test ]; } The work around is to use Test::Unit::TestSuite::empty_new
Subject: Test::Unit::TestSuite::new sets inconsistent type for $self->{units}
Test::Unit::TestSuite::new overwrites sets inconsistant type for $self->{units}. If you look at Test::Unit::TestSuite::add_tests, it appears to be an array of Test::Unit::TestCases. If you look at Test::Unit::TestSuite::new, it assigns $self->{unit} to an array of strings. You should change this block elsif (defined $test and $test->isa('Test::Unit::TestCase')) { $class = ref $test ? ref $test : $test; $self->{units} = [ $test->list_tests ]; } To this: elsif (defined $test and $test->isa('Test::Unit::TestCase')) { $self->{units} = [ $test ]; } The work around is to use Test::Unit::TestSuite::empty_new
Thank you very much for report. This bug is closed with 0.0901 release.