]>
Commit | Line | Data |
---|---|---|
83c7162d XL |
1 | extern crate utf8; |
2 | ||
3 | #[path = "shared/data.rs"] | |
4 | mod data; | |
5 | ||
6 | #[path = "shared/string_from_utf8_lossy.rs"] | |
7 | mod string_from_utf8_lossy; | |
8 | ||
9 | #[test] | |
10 | fn test_string_from_utf8_lossy() { | |
11 | for &(input, expected) in data::DECODED_LOSSY { | |
12 | assert_eq!(string_from_utf8_lossy::string_from_utf8_lossy(input), expected); | |
13 | } | |
14 | } |