mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-14 22:33:09 +00:00
aep: text-dict test builds its prefix without repeat(1) (#3276)
This commit is contained in:
1 parent
ff5952ee5d
commit
34715bbd86
1 file changed
+2
-2
@@ -1533,9 +1533,9 @@ mod tests {
|
||||
let _ = TextDocument::parse(body);
|
||||
}
|
||||
for depth in [63, 64, 65, 66, 200] {
|
||||
let body = [b"/k ".repeat(1), b"<< /a ".repeat(depth), b"1".to_vec(), b" >>".repeat(depth), b" /z 2".to_vec()].concat();
|
||||
let body = [b"/k ".to_vec(), b"<< /a ".repeat(depth), b"1".to_vec(), b" >>".repeat(depth), b" /z 2".to_vec()].concat();
|
||||
assert_eq!(parse_text_dict(&body), oracle::parse_text_dict(&body), "depth {depth}");
|
||||
let body = [b"/k ".repeat(1), b"[ ".repeat(depth), b"]".repeat(depth)].concat();
|
||||
let body = [b"/k ".to_vec(), b"[ ".repeat(depth), b"]".repeat(depth)].concat();
|
||||
assert_eq!(parse_text_dict(&body), oracle::parse_text_dict(&body), "array depth {depth}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user