Changeset

12703:5bda8598a2af

util.crypto: tests: fix some tests that didn't do much (thanks luacheck!)
author Matthew Wild <mwild1@gmail.com>
date Sat, 02 Jul 2022 15:27:44 +0100
parents 12702:f63176781940
children 12704:31a2bd84191d
files spec/util_crypto_spec.lua
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);