ron 0.12.1

Rusty Object Notation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[test]
fn value_deserialises_r_name() {
    // deserialising "A('/')" into ron::Value previously failed as the struct type
    //  searcher reads into the char and then finds a weird comment starter there
    assert_eq!(
        ron::from_str("A('/')"),
        Ok(ron::Value::Seq(vec![ron::Value::Char('/')]))
    );
    assert_eq!(
        ron::from_str("A(\"/\")"),
        Ok(ron::Value::Seq(vec![ron::Value::String(String::from("/"))]))
    );
}