From d65ad9104f08c3d62ee9f5c0a2b7255017170eea Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 15 Mar 2015 04:36:52 -0400 Subject: reorganize --- tests/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/lib.rs (limited to 'tests') 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); +} -- cgit v1.2.3-54-g00ecf