blob: 51449884483e5353b767675ce86a4f580a196c59 [file] [log] [blame]
Jeff Vander Stoep0029ba42021-06-25 09:40:28 +02001extern crate base64;
2
3use base64::*;
4
5pub fn compare_decode(expected: &str, target: &str) {
6 assert_eq!(
7 expected,
8 String::from_utf8(decode(target).unwrap()).unwrap()
9 );
10 assert_eq!(
11 expected,
12 String::from_utf8(decode(target.as_bytes()).unwrap()).unwrap()
13 );
14}