From b1f57a05f31a04b6d0dfbdfaf358ce8adfd45dda Mon Sep 17 00:00:00 2001 From: ame Date: Tue, 26 Mar 2024 13:36:42 -0500 Subject: pretty:3 --- tests/hash.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/hash.lua') diff --git a/tests/hash.lua b/tests/hash.lua index ca9d85c..67155d3 100644 --- a/tests/hash.lua +++ b/tests/hash.lua @@ -12,13 +12,11 @@ function test(name,b,exp,oargs) end if(llib.crypto[name.."_init"] ~= nil) then - local t = llib.crypto[name.."_init"]() - llib.crypto[name.."_update"](t, b) - hash2 = llib.crypto[name.."_final"](t) + hash2 = llib.crypto[name.."_init"]():update(b):final() if(hash2 ~= hash) then llib.io.error(name.." init-update-final method not working, got:\n\t"..hash2.." other was:\n\t"..hash) else - llib.io.log(name.." alt method working") + llib.io.log(name.." alt method working "..hash2.." == "..hash) end end -- cgit v1.2.3