Debian Codegraph @

tests/465_no_comment_char_value.rs

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