From 497eddcf2a3624d1378989da874a786b15667ccc Mon Sep 17 00:00:00 2001 From: y5nw <37980625+y5nw@users.noreply.github.com> Date: Sun, 21 Jan 2024 19:02:54 +0100 Subject: [PATCH] Fix oversight in test case --- api.spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.spec.lua b/api.spec.lua index 64ad175..5c82898 100644 --- a/api.spec.lua +++ b/api.spec.lua @@ -23,7 +23,7 @@ local function assert_inbox_count(player_name, count) assert(entry, player_name .. " has no mail entry") local actual_count = #entry.inbox 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)) end