Simplify one test
This commit is contained in:
parent
1202cbbcd2
commit
4e3c597910
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue