Current section
Files
Jump to
Current section
Files
test/cryptx_test.exs
defmodule CryptxTest do
use ExUnit.Case
doctest Cryptx
test "test sha1 hash" do
assert Cryptx.sha1("test string") == "661295c9cbf9d6b2f6428414504a8deed3020641"
end
test "test sha512 hash" do
assert Cryptx.sha512("test string") == "10e6d647af44624442f388c2c14a787ff8b17e6165b83d767ec047768d8cbcb71a1a3226e7cc7816bc79c0427d94a9da688c41a3992c7bf5e4d7cc3e0be5dbac"
end
end