diff options
| author | ame <[email protected]> | 2024-03-26 13:36:42 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-03-26 13:36:42 -0500 |
| commit | b1f57a05f31a04b6d0dfbdfaf358ce8adfd45dda (patch) | |
| tree | 9121bda8e2fa09f13e7f4d78266ce755a69786e8 /tests/hash.lua | |
| parent | c6e8e66aa91bffa649e9192d3e4e0658d78d0ad6 (diff) | |
pretty:3
Diffstat (limited to 'tests/hash.lua')
| -rw-r--r-- | tests/hash.lua | 6 |
1 files changed, 2 insertions, 4 deletions
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 |
