aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/util_crypto_spec.lua5
1 files changed, 2 insertions, 3 deletions
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);