test(tests): fix the pinned value count past the depth cap (65 + 1000 + 65); doc comment
This commit is contained in:
1 parent
83a66a23dc
commit
cad485b13c
2 files changed
+3
-2
No files matched your search
@@ -70,7 +70,8 @@ fn prescan_keeps_counting_values_past_the_depth_cap() {
|
||||
let deep = format!("{}{}{}", "[".repeat(65), "1,".repeat(1000), "1]".repeat(65));
|
||||
let scan = prescan(deep.as_bytes());
|
||||
assert!(!scan.within_depth);
|
||||
assert_eq!(scan.values, 65 + 1001);
|
||||
// 65 opens, 1,000 numbers, then one number after each `]`.
|
||||
assert_eq!(scan.values, 65 + 1000 + 65);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user