XP is just a number | |
PerlMonks |
Re^2: solution wanted for break-on-spaces (w/specifics)by LanX (Saint) |
on Oct 24, 2021 at 09:44 UTC ( [id://11137952]=note: print w/replies, xml ) | Need Help?? |
> Testing for the number of elements is a weak test; you really need qualitative tests as well. > I've included most of your tests; I think the best way to test this, is to create these strings from joining @expected arrays. By generating these arrays one can make sure to cover all edge cases. As a side product you'll define a formal grammar. Like:
Crafting the strings by hand is error prone, because there are far too many cases to handle.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|