[go: up one dir, main page]

ron 0.4.1

Rusty Object Notation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate ron;

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: ऄ");
}