Skip to content

Commit 43e2113

Browse files
committed
try octal printf
1 parent 0081125 commit 43e2113

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/cmd-test.roc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ main! = |_args|
5151
# Test StdoutContainsInvalidUtf8 - using printf to output invalid UTF-8 bytes
5252
expect_err(
5353
Cmd.new("printf")
54-
|> Cmd.args(["%b", "\\xff\\xfe"]) # Invalid UTF-8 sequence
54+
|> Cmd.args(["\\377\\376"]) # Invalid UTF-8 sequence
5555
|> Cmd.exec_output!,
56-
"(Err (StdoutContainsInvalidUtf8 {cmd_str: \"{ cmd: printf, args: %b \\xff\\xfe }\", err: (BadUtf8 {index: 0, problem: InvalidStartByte})}))"
56+
"(Err (StdoutContainsInvalidUtf8 {cmd_str: \"{ cmd: printf, args: \\377\\376 }\", err: (BadUtf8 {index: 0, problem: InvalidStartByte})}))"
5757
)?
5858

5959
# exec_output_bytes!

0 commit comments

Comments
 (0)