From 12a9ab92de04f89aa7847eeb235180dbaa59cf02 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 2 Jul 2022 15:27:44 +0100 Subject: util.crypto: tests: fix some tests that didn't do much (thanks luacheck!) --- spec/util_crypto_spec.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'spec') diff --git a/spec/util_crypto_spec.lua b/spec/util_crypto_spec.lua index 14c35188..0d7a7ffb 100644 --- a/spec/util_crypto_spec.lua +++ b/spec/util_crypto_spec.lua @@ -133,12 +133,11 @@ describe("util.crypto", function () string.rep("\255", 72); string.rep("\255", 3); }; - for _, sig in ipairs(invalid_sigs) do - local r, s = crypto.parse_ecdsa_signature(""); + for _, invalid_sig in ipairs(invalid_sigs) do + local r, s = crypto.parse_ecdsa_signature(invalid_sig); assert.is_nil(r); assert.is_nil(s); end - end); it("can be built", function () local r, s = crypto.parse_ecdsa_signature(sig); -- cgit v1.2.3