Skip to content

Commit 8b5fd81

Browse files
authored
fix(returned_args): proper message (#199)
1 parent 2be28cb commit 8b5fd81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/languages/en.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ s:set("assertion.called_with.negative", "Function was called with matching argum
4040
s:set("assertion.returned_with.positive", "Function never returned matching arguments.\nReturned (last call if any):\n%s\nExpected:\n%s")
4141
s:set("assertion.returned_with.negative", "Function returned matching arguments at least once.\nReturned (last matching call):\n%s\nDid not expect:\n%s")
4242

43-
s:set("assertion.returned_arguments.positive", "Expected to be called with %s argument(s), but was called with %s")
44-
s:set("assertion.returned_arguments.negative", "Expected not to be called with %s argument(s), but was called with %s")
43+
s:set("assertion.returned_arguments.positive", "Expected %s results(s) to be returned, but got %s")
44+
s:set("assertion.returned_arguments.negative", "Expected not %s results(s) to be returned, but got %s")
4545

4646
-- errors
4747
s:set("assertion.internal.argtolittle", "the '%s' function requires a minimum of %s arguments, got: %s")

0 commit comments

Comments
 (0)