aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-07-16 19:17:06 +0200
committerKim Alvefur <zash@zash.se>2023-07-16 19:17:06 +0200
commit9f96301ce8d025cfbd15ab42caae7fc3906ba2d4 (patch)
treef2887b1048aa402490dba2494b1e842c172c7e80 /spec
parente0a423dd292cd52a995c2195f2c1c88a5fe090f5 (diff)
downloadprosody-9f96301ce8d025cfbd15ab42caae7fc3906ba2d4.tar.gz
prosody-9f96301ce8d025cfbd15ab42caae7fc3906ba2d4.zip
util.human.io: Include relevant arguments in test messages
This way the relevant arguments are shown in case a test case fails
Diffstat (limited to 'spec')
-rw-r--r--spec/util_human_io_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/util_human_io_spec.lua b/spec/util_human_io_spec.lua
index 358d9a19..19acc9ac 100644
--- a/spec/util_human_io_spec.lua
+++ b/spec/util_human_io_spec.lua
@@ -45,7 +45,7 @@ describe("util.human.io", function ()
describe("parse_duration", function ()
local function test(expected, duration)
- return assert.equal(expected, human_io.parse_duration(duration));
+ return assert.equal(expected, human_io.parse_duration(duration), ("%q -> %d"):format(duration, expected));
end
it("works", function ()
test(1, "1s");