summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2015-03-15 04:36:52 -0400
committerJesse Luehrs <doy@tozt.net>2015-03-15 04:36:52 -0400
commitd65ad9104f08c3d62ee9f5c0a2b7255017170eea (patch)
tree943e84cd90d17f675a3aa7063aee323e55293861 /tests
parentf2b02462a35e46bbfb46df359494094722f95736 (diff)
downloadmatasano-d65ad9104f08c3d62ee9f5c0a2b7255017170eea.tar.gz
matasano-d65ad9104f08c3d62ee9f5c0a2b7255017170eea.zip
reorganize
Diffstat (limited to 'tests')
-rw-r--r--tests/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib.rs b/tests/lib.rs
new file mode 100644
index 0000000..c2c79cc
--- /dev/null
+++ b/tests/lib.rs
@@ -0,0 +1,8 @@
+extern crate matasano;
+
+#[test]
+fn problem_1 () {
+ let hex = "49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d";
+ let base64 = "SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t";
+ assert_eq!(matasano::hex_to_base64(hex), base64);
+}