lunarmodules / luassert

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

Refactor `called` negative assertion messages #105

Closed o-lim closed 9 years ago

o-lim commented 9 years ago

This changes the negative assertion messages for called assertions with at_least, at_most, more_than, and less_than modifiers to use the opposite positive assertion message. For example, the negative message for called_at_least is the the called_less_than positive message. This reduces the number of messages that are used as well the number of translations needed.