@@ -37,11 +37,12 @@ fn standard_format() {
37
37
} ;
38
38
39
39
let expected = format ! (
40
- "{{ float: 2.4, string: \" hello\" , array: [\" testing\" , 1, true, [1, 2]], doc: {{ fish: \
41
- \" in\" , a: \" barrel\" , !: 1 }}, bool: true, null: null, regexp: /s[ao]d/i, \
42
- with_wrapped_parens: -20, code: function(x) {{ return x._id; }}, i32: 12, i64: -55, \
43
- timestamp: Timestamp(0, 229999444), binary: Binary(0x5, {}), encrypted: Binary(0x6, {}), \
44
- _id: ObjectId(\" {}\" ), date: DateTime(\" {}\" ) }}",
40
+ "{{ \" float\" : 2.4, \" string\" : \" hello\" , \" array\" : [\" testing\" , 1, true, [1, 2]], \
41
+ \" doc\" : {{ \" fish\" : \" in\" , \" a\" : \" barrel\" , \" !\" : 1 }}, \" bool\" : true, \" null\" : \
42
+ null, \" regexp\" : /s[ao]d/i, \" with_wrapped_parens\" : -20, \" code\" : function(x) {{ \
43
+ return x._id; }}, \" i32\" : 12, \" i64\" : -55, \" timestamp\" : Timestamp(0, 229999444), \
44
+ \" binary\" : Binary(0x5, {}), \" encrypted\" : Binary(0x6, {}), \" _id\" : ObjectId(\" {}\" ), \
45
+ \" date\" : DateTime(\" {}\" ) }}",
45
46
base64:: encode( "thingies" ) ,
46
47
base64:: encode( "secret" ) ,
47
48
hex:: encode( id_string) ,
@@ -59,7 +60,7 @@ fn non_trailing_comma() {
59
60
"b" : { "ok" : "then" }
60
61
} ;
61
62
62
- let expected = "{ a : \" foo\" , b : { ok : \" then\" } }" . to_string ( ) ;
63
+ let expected = "{ \" a \" : \" foo\" , \" b \" : { \" ok \" : \" then\" } }" . to_string ( ) ;
63
64
assert_eq ! ( expected, format!( "{}" , doc) ) ;
64
65
}
65
66
0 commit comments