fix: escape characters in shell escape test

This commit is contained in:
Ian den Hartog
2025-03-26 19:52:36 +01:00
committed by GitHub
parent 613857cf7e
commit 18cc119ced

View File

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