We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25f52d0 commit eb00a4dCopy full SHA for eb00a4d
guards/github-guard/rust-guard/src/lib.rs
@@ -1236,9 +1236,9 @@ mod tests {
1236
// {"body":"<padding>中中中..."}
1237
let prefix = "{\"body\":\""; // 9 bytes
1238
let padding = "x".repeat(489); // 489 bytes — total so far: 498
1239
- let cjk_tail = "中中中中中"; // 5 × 3 = 15 bytes — total: 513
+ let cjk_tail = "中中中中中"; // 5 × 3 = 15 bytes — subtotal: 513
1240
1241
- let json = format!("{}{}{}\"}}", prefix, padding, cjk_tail);
+ let json = format!("{}{}{}\"}}", prefix, padding, cjk_tail); // +3 bytes for "\"}}" => 516 total
1242
assert!(json.len() > 500);
1243
1244
let preview = safe_preview(&json, 500);
0 commit comments