X-Git-Url: https://code.kerkeslager.com/?p=sandbox;a=blobdiff_plain;f=cryptopals-erlang%2F01.01%2Fhex_to_base64_tests.erl;fp=cryptopals-erlang%2F01.01%2Fhex_to_base64_tests.erl;h=11ac6980ba4d9ffe9934462d10fca6770e6aa752;hp=0000000000000000000000000000000000000000;hb=b37c633b0ba51e497920762fa2eb4d732ebca291;hpb=545381e1397107d4ab00d2e54d85d3e11d98e4f1 diff --git a/cryptopals-erlang/01.01/hex_to_base64_tests.erl b/cryptopals-erlang/01.01/hex_to_base64_tests.erl new file mode 100644 index 0000000..11ac698 --- /dev/null +++ b/cryptopals-erlang/01.01/hex_to_base64_tests.erl @@ -0,0 +1,6 @@ +-module(hex_to_base64_tests). +-include_lib("eunit/include/eunit.hrl"). + +basit_test() -> ?assertEqual( + "SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t", + hex_to_base64:hex_to_base64("49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d")).