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 | 28a9d801572cf69d20d1f0a12c383ca7dbae3a67 (patch) | |
| tree | 9121bda8e2fa09f13e7f4d78266ce755a69786e8 /tests/hash.lua | |
| parent | 1969b6c40bb4cf99f5034deb957e330920397e9c (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 |
