lunarmodules / luassert

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

Fix error that occurs when a failing assertion tries to format the `_` (anything) matcher. #192

Closed stringTrimmer closed 1 year ago

stringTrimmer commented 1 year ago

Fixes #179

Cause the issue with:

   local test = spy.new(function() end)
   test('this', 39)
   assert.spy(test).called_with('that', match._)

Implementation:

Formatting:

Tieske commented 1 year ago

@stringTrimmer thx for the fix. And apologies for the long delay.

stringTrimmer commented 1 year ago

np, happy to have contributed a tiny bit to this project.