Lines Matching refs:to_string
138 assert_eq!(string("\"\""), Ok(("", "".to_string()))); in json_string()
139 assert_eq!(string("\"abc\""), Ok(("", "abc".to_string()))); in json_string()
142 Ok(("", "abc\"\\/\x08\x0C\n\r\t\x01——def".to_string())), in json_string()
144 assert_eq!(string("\"\\uD83D\\uDE10\""), Ok(("", "".to_string()))); in json_string()
163 ("a".to_string(), Num(42.0)), in json_object()
164 ("b".to_string(), Str("x".to_string())), in json_object()
179 let expected = Array(vec![Num(42.0), Str("x".to_string())]); in json_array()
208 ("null".to_string(), Null), in json_whitespace()
209 ("true".to_string(), Bool(true)), in json_whitespace()
210 ("false".to_string(), Bool(false)), in json_whitespace()
211 ("number".to_string(), Num(123e4)), in json_whitespace()
212 ("string".to_string(), Str(" abc 123 ".to_string())), in json_whitespace()
214 "array".to_string(), in json_whitespace()
215 Array(vec![Bool(false), Num(1.0), Str("two".to_string())]) in json_whitespace()
218 "object".to_string(), in json_whitespace()
221 ("a".to_string(), Num(1.0)), in json_whitespace()
222 ("b".to_string(), Str("c".to_string())), in json_whitespace()
228 ("empty_array".to_string(), Array(vec![]),), in json_whitespace()
229 ("empty_object".to_string(), Object(HashMap::new()),), in json_whitespace()