]> git.proxmox.com Git - rustc.git/blame - src/vendor/utf-8/tests/string_from_utf8_lossy.rs
New upstream version 1.31.0+dfsg1
[rustc.git] / src / vendor / utf-8 / tests / string_from_utf8_lossy.rs
CommitLineData
83c7162d
XL
1extern crate utf8;
2
3#[path = "shared/data.rs"]
4mod data;
5
6#[path = "shared/string_from_utf8_lossy.rs"]
7mod string_from_utf8_lossy;
8
9#[test]
10fn 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}