You should have specific, individual tests for the various patterns.  If you need to, meta-program to generate multiple tests rather than a single test that checks multiple things.  Usually it is more efficient to just write out the individual tests -- especially since you have reduced them to a single line.