mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 16:31:43 -04:00
Fixup typos in complemented test
This commit is contained in:
parent
c692b6ee79
commit
9c2be9d689
1 changed files with 10 additions and 12 deletions
|
@ -1,5 +1,4 @@
|
||||||
mtt.register("register non-player-recipients", function(callback)
|
mail.register_recipient_handler(function(_, name)
|
||||||
mail.register_recipient_handler(function(sender, name)
|
|
||||||
if name:sub(1, 6) == "alias/" then
|
if name:sub(1, 6) == "alias/" then
|
||||||
return true, name:sub(7)
|
return true, name:sub(7)
|
||||||
elseif name == "list/test" then
|
elseif name == "list/test" then
|
||||||
|
@ -8,10 +7,9 @@ mtt.register("register non-player-recipients", function(callback)
|
||||||
return false, "It works (?)"
|
return false, "It works (?)"
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
|
||||||
|
|
||||||
local function assert_inbox_count(player_name, count)
|
local function assert_inbox_count(player_name, count)
|
||||||
local entry == mail.get_storage_entry(player_name)
|
local entry = mail.get_storage_entry(player_name)
|
||||||
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))
|
||||||
|
|
Loading…
Add table
Reference in a new issue