mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 08:21:44 -04:00
Fix oversight in test case
This commit is contained in:
parent
21a3a42131
commit
497eddcf2a
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ local function assert_inbox_count(player_name, count)
|
||||||
assert(entry, player_name .. " has no mail entry")
|
assert(entry, player_name .. " has no mail entry")
|
||||||
local actual_count = #entry.inbox
|
local actual_count = #entry.inbox
|
||||||
assert(actual_count == count, ("incorrect mail count: %d expected, got %d"):format(count, actual_count))
|
assert(actual_count == count, ("incorrect mail count: %d expected, got %d"):format(count, actual_count))
|
||||||
local player_received = received_count[player_name]
|
local player_received = received_count[player_name] or 0
|
||||||
assert(player_received == count, ("incorrect receive count: %d expected, got %d"):format(count, player_received))
|
assert(player_received == count, ("incorrect receive count: %d expected, got %d"):format(count, player_received))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue