From d6578f1357f7ae10feb9e4a4fae1a1953739557a Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 15 Mar 2015 16:22:13 -0400 Subject: if we disallow control characters, we get much more reasonable results --- tests/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/lib.rs b/tests/lib.rs index ac13fb2..b537bd0 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -36,7 +36,7 @@ fn problem_4 () { .lines() .map(|line| line.unwrap().from_hex().unwrap()) .collect::>>(); - assert_eq!(matasano::find_single_byte_xor_encrypted_string(&possibles[..]), b"nOW\0THAT\0THE\0PARTY\0IS\0JUMPING*"); + assert_eq!(matasano::find_single_byte_xor_encrypted_string(&possibles[..]), b"Now that the party is jumping\n"); } #[test] -- cgit v1.2.3-54-g00ecf