lunarmodules / luassert

Assertion library for Lua
MIT License
206 stars 77 forks source link

Add matches assertion to match strings #93

Closed o-lim closed 9 years ago

o-lim commented 9 years ago

This allows the following assertion:

assert.has_match(pattern, string [, init [, plain]])

similar to string.find

Fixes issue #87.