You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The english localization (in en.lua) seems to have the wrong assertion messages. They mention arguments the function is called with, but the keys indicate, they refer to the number of values returned by said function.
s:set("assertion.returned_arguments.positive", "Expected to be called with %s argument(s), but was called with %s")
s:set("assertion.returned_arguments.negative", "Expected not to be called with %s argument(s), but was called with %s")
This is further backed up by the example on the front page which uses the assertion.returned_arguments together with a custom message that mentions return arguments:
assert.message("the function 'f' did not return 2 arguments").returned_arguments(2, f())
I haven't checked if other localizations are affected, too.
The text was updated successfully, but these errors were encountered:
The english localization (in en.lua) seems to have the wrong assertion messages. They mention arguments the function is called with, but the keys indicate, they refer to the number of values returned by said function.
This is further backed up by the example on the front page which uses the assertion.returned_arguments together with a custom message that mentions return arguments:
assert.message("the function 'f' did not return 2 arguments").returned_arguments(2, f())
I haven't checked if other localizations are affected, too.
The text was updated successfully, but these errors were encountered: