good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Test:: to match multiple lines against corresponding regular expressionsby Dallaylaen (Chaplain) |
on Jun 24, 2018 at 12:05 UTC ( [id://1217317]=perlquestion: print w/replies, xml ) | Need Help?? |
Dallaylaen has asked for the wisdom of the Perl Monks concerning the following question: Hello dear esteemed monks! I'm looking for a way to test multiple lines to match corresponding regular expressions:
Now obviously I can do it with a subtest and like statements, plus one test for length:
And I can do it with one go with Test::Deep, although I haven't yet found out how to make it report the full difference and not just the first mismatch. But maybe there's a module that does exactly that (matches a list of strings against a list of regexps)? Thanks!
Back to
Seekers of Perl Wisdom
|
|