# HG changeset patch # User Matthew Wild # Date 1656772064 -3600 # Node ID 5bda8598a2af6421d2eed70bc966e15c34358478 # Parent f6317678194025634155bfa8f4fa72d35eb51936 util.crypto: tests: fix some tests that didn't do much (thanks luacheck!) diff -r f63176781940 -r 5bda8598a2af spec/util_crypto_spec.lua --- a/spec/util_crypto_spec.lua Sat Jul 02 14:59:52 2022 +0100 +++ b/spec/util_crypto_spec.lua Sat Jul 02 15:27:44 2022 +0100 @@ -133,12 +133,11 @@ 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);