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
Copy file name to clipboardExpand all lines: lua/luassert/languages/en.lua
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -34,11 +34,11 @@ s:set("assertion.called_at_most.positive", "Expected to be called at most %s tim
34
34
s:set("assertion.called_more_than.positive", "Expected to be called more than %s time(s), but was called %s time(s)")
35
35
s:set("assertion.called_less_than.positive", "Expected to be called less than %s time(s), but was called %s time(s)")
36
36
37
-
s:set("assertion.called_with.positive", "Function was not called with the arguments")
38
-
s:set("assertion.called_with.negative", "Function was called with the arguments")
37
+
s:set("assertion.called_with.positive", "Function was never called with matching arguments.\nCalled with (last call if any):\n%s\nExpected:\n%s")
38
+
s:set("assertion.called_with.negative", "Function was called with matching arguments at least once.\nCalled with (last matching call):\n%s\nDid not expect:\n%s")
39
39
40
-
s:set("assertion.returned_with.positive", "Function was not returned with the arguments")
41
-
s:set("assertion.returned_with.negative", "Function was returned with the arguments")
40
+
s:set("assertion.returned_with.positive", "Function never returned matching arguments.\nReturned (last call if any):\n%s\nExpected:\n%s")
41
+
s:set("assertion.returned_with.negative", "Function returned matching arguments at least once.\nReturned (last matching call):\n%s\nDid not expect:\n%s")
42
42
43
43
s:set("assertion.returned_arguments.positive", "Expected to be called with %s argument(s), but was called with %s")
44
44
s:set("assertion.returned_arguments.negative", "Expected not to be called with %s argument(s), but was called with %s")
0 commit comments