From 9f96301ce8d025cfbd15ab42caae7fc3906ba2d4 Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Sun, 16 Jul 2023 19:17:06 +0200
Subject: util.human.io: Include relevant arguments in test messages

This way the relevant arguments are shown in case a test case fails
---
 spec/util_human_io_spec.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'spec')

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");
-- 
cgit v1.2.3