summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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);
+}