From 4e3c597910c76fecd988f59948ba7bc3401117dc Mon Sep 17 00:00:00 2001 From: Mathijs van de Nes Date: Tue, 30 Jun 2015 09:58:56 +0200 Subject: [PATCH] Simplify one test --- src/cp437.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cp437.rs b/src/cp437.rs index e9ed6ebc..202dc8fb 100644 --- a/src/cp437.rs +++ b/src/cp437.rs @@ -197,7 +197,7 @@ mod test #[test] fn example_slice() { use super::FromCp437; - let data : &[u8] = &[0x43, 0x75, 0x72, 0x61, 0x87, 0x61, 0x6F]; + let data = b"Cura\x87ao"; assert!(::std::str::from_utf8(data).is_err()); assert_eq!(data.from_cp437(), "CuraƧao"); }