Skip to content

Commit de0ac94

Browse files
committed
explanation for tests in sorted_json
1 parent a2dbbe5 commit de0ac94

File tree

1 file changed

+2
-0
lines changed
  • src/librustdoc/html/render/sorted_json

1 file changed

+2
-0
lines changed

src/librustdoc/html/render/sorted_json/tests.rs

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ fn check(json: SortedJson, serialized: &str) {
1717
assert_eq!(serde_json::to_string(&json).unwrap(), serialized);
1818
}
1919

20+
// Test this basic are needed because we are testing that our Display impl + serialize impl don't
21+
// nest everything in extra level of string. We also are testing round trip.
2022
#[test]
2123
fn escape_json_number() {
2224
let json = SortedJson::serialize(3);

0 commit comments

Comments
 (0)