Simplify one test

This commit is contained in:
Mathijs van de Nes 2015-06-30 09:58:56 +02:00
parent 1202cbbcd2
commit 4e3c597910

View file

@ -197,7 +197,7 @@ mod test
#[test] #[test]
fn example_slice() { fn example_slice() {
use super::FromCp437; 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!(::std::str::from_utf8(data).is_err());
assert_eq!(data.from_cp437(), "Curaçao"); assert_eq!(data.from_cp437(), "Curaçao");
} }