Test-More / TB2

Test::Builder version 2, the next generation of building testing modules in Perl
Other
1 stars 0 forks source link

Make Result->description coerce anything into a string #150

Closed schwernbot closed 10 years ago

schwernbot commented 10 years ago

From: @schwern Date: Saturday Feb 05, 2011 at 11:12 GMT Orig: https://github.com/Test-More/test-more/issues/137

Result->description take a "Str" which means if you accidentally hand it an object your test blows up. While it's probably not useful to pass an object as a test name, it's not enough of an offense to cause the test to puke. Also, it probably doesn't work with overloaded objects.

Make Result->description coerce anything into a string.