summaryrefslogtreecommitdiffstats
path: root/third_party/rust/ron/tests/unicode.rs
blob: 0617eeed14e9f552e74f5da4426b2b3c8a62c17c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use ron::de::from_str;

#[test]
fn test_char() {
    let de: char = from_str("'Փ'").unwrap();
    assert_eq!(de, 'Փ');
}

#[test]
fn test_string() {
    let de: String = from_str("\"My string: ऄ\"").unwrap();
    assert_eq!(de, "My string: ऄ");
}