fix: escape characters in shell escape test

pull/6925/head
Ian den Hartog 2025-03-26 19:52:36 +01:00 committed by GitHub
parent 613857cf7e
commit 18cc119ced
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());
}