From 34715bbd860fe570ef6bccabe39e57c7e8252694 Mon Sep 17 00:00:00 2001 From: vangel76 Date: Sun, 8 Nov 2026 03:37:19 +0100 Subject: [PATCH] aep: text-dict test builds its prefix without repeat(1) (#3276) --- crates/aep/src/container/textdoc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/aep/src/container/textdoc.rs b/crates/aep/src/container/textdoc.rs index dc386611f..f8421c590 100644 --- a/crates/aep/src/container/textdoc.rs +++ b/crates/aep/src/container/textdoc.rs @@ -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}"); } }