Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
Run AesFileEncrypt self_test.
Browse files Browse the repository at this point in the history
  • Loading branch information
moteus committed May 15, 2014
1 parent 37a61e0 commit 191a4f8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/ZipWriter/encrypt/aes/AesFileEncrypt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -319,5 +319,7 @@ end
return {
new = function()
return AesFileEncrypt:new()
end
end;

self_test = AesFileEncrypt.self_test;
}
14 changes: 14 additions & 0 deletions test/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -418,4 +418,18 @@ end

end

local AesEncrypt = prequire"ZipWriter.encrypt.aes.AesFileEncrypt"

if AesEncrypt then

local _ENV = TEST_CASE'AesEncrypt self_test' do

function test()
AesEncrypt.self_test()
end

end

end

if not HAS_RUNNER then lunit.run() end

0 comments on commit 191a4f8

Please sign in to comment.