You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/parser.rs
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -769,7 +769,6 @@ mod tests {
769
769
usecrate::stringify;
770
770
usecrate::JsonValue;
771
771
772
-
#[macro_use]
773
772
usecrate::object;
774
773
usecrate::array;
775
774
@@ -840,7 +839,7 @@ mod tests {
840
839
fnit_should_parse_json_nested_object(){
841
840
let s = "{\"a\":1,\"b\":{\"c\":2,\"d\":{\"e\":{\"f\":{\"g\":3,\"h\":[]}}},\"i\":4,\"j\":[],\"k\":{\"l\":5,\"m\":{}}}}";
842
841
let actual = parse(s).unwrap();
843
-
letmutexpected = object!{
842
+
let expected = object!{
844
843
"a" => 1,
845
844
"b" => object!{
846
845
"c" => 2,
@@ -868,7 +867,7 @@ mod tests {
868
867
fnit_should_parse_json_complex_object(){
869
868
let s = "{\"a\":1,\"b\":{\"c\":2,\"d\":{\"e\":{\"f\":{\"g\":3,\"h\":[{\"z\":1},{\"y\":2,\"x\":[{},{}]}]}}},\"i\":4,\"j\":[],\"k\":{\"l\":5,\"m\":{}}}}";
0 commit comments