groupon / assertive

Assertive is a terse yet expressive assertion library
BSD 3-Clause "New" or "Revised" License
21 stars 11 forks source link

remove shortcutting include error with empty haystacks #1

Closed EndangeredMassa closed 11 years ago

EndangeredMassa commented 11 years ago

This shortcut makes the error messages less clear. So, I removed it.

johan commented 11 years ago

Thanks. These were actually a think:o during initial implementation – the real intention was to throw a tantrum about the no-op inverse condition: asserting that something has a sub-string "" currently passes without warning, rather than forcing your hand to look at why you'd be asserting something obvious like that.