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