Closed choroba closed 6 years ago
Greetings from the future (2018)!
The code seems to stem from https://github.com/ingydotnet/test-base-pm/blob/master/lib/Test/Base.pm#L637-L644
Which deals with using $_
for filter simplicity which on the whole was probably a bad API design to go with.
The simple fix appears to be to change your filter to use:
$_ = 'X' x $_
In 2018 Test::Base has been replaced with a shiny new TestML. If you are still interested in Perl by then, check it out. :)
If a subroutine returns an empty string, the input value is used in the test instead.
Sample (test "zero" shouldn't fail):