We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 800a8d5 commit baae6d9Copy full SHA for baae6d9
tests/debug.rs
@@ -49,3 +49,24 @@ fn error() {
49
let expected = "Error(\"key must be a string\", line: 1, column: 2)";
50
assert_eq!(format!("{:?}", err), expected);
51
}
52
+
53
+const INDENTED_EXPECTED: &str = r#"Object(
54
+ {
55
+ "array": Array(
56
+ [
57
+ Number(
58
+ 0,
59
+ ),
60
61
+ 1,
62
63
+ ],
64
65
+ },
66
+)"#;
67
68
+#[test]
69
+fn indented() {
70
+ let j = json!({ "array": [0, 1] });
71
+ assert_eq!(format!("{:#?}", j), INDENTED_EXPECTED);
72
+}
0 commit comments