fix: escape characters in shell escape test (#6925)

Fix the escape.

Sorry again for the inconveniences. Let's check if the test is now green
pull/6924/head
Jeffrey C. Ollie 2025-03-26 14:14:38 -05:00 committed by GitHub
commit ed4260b3c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -102,5 +102,5 @@ test "shell escape 7" {
var shell: ShellEscapeWriter(@TypeOf(fmt).Writer) = .{ .child_writer = fmt.writer() };
const writer = shell.writer();
try writer.writeAll("a(1)");
try testing.expectEqualStrings("a\(1\)", fmt.getWritten());
try testing.expectEqualStrings("a\\(1\\)", fmt.getWritten());
}