Open Lucretiel opened 7 years ago
Anything? This came up for me today. Not high priority, but would be convenient.
This would fix #94
It's a bit ironic to say that in a testing project, but we need tests. :)
I think it makes perfect sense -- if your test library isn't tested, how can you be sure it works?
It's tests all the way down!
D'oh. I'll take care of it tonight!
Tests added, though I'd appreciate a manual review to make sure I didn't typo anything
Bump? Anything else needed before merge?
The matches function now supports Regexp objects, in case users want to only compile the regex once, before the tests run.
Also modified the function to use type switches, making the logic easier to follow