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
This commit is contained in:
Jeffrey C. Ollie
2025-03-26 14:14:38 -05:00
committed by GitHub

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());
}