Skip to content

Commit 88e8c85

Browse files
neunenakclaude
andcommitted
Use Rust escape sequences in misc.rs for invisible/control char tests
Replace literal binary bytes (U+200B zero-width space and null byte) in test source code with Rust escape sequences (\u{200b} and \0), making tests/misc.rs a pure-ASCII file searchable by ripgrep and Neovim Telescope. The escape sequences expand to the actual characters at runtime, so test behavior is unchanged. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9ab39c8 commit 88e8c85

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

β€Žtests/misc.rsβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,10 +2252,10 @@ fn unknown_start_of_token_invisible_unicode() {
22522252
",
22532253
)
22542254
.stderr(
2255-
r"Error: Unknown start of token '\u{200B}' (U+200B)
2255+
"Error: Unknown start of token '\u{200b}' (U+200B)
22562256
╭─[ justfile:1:1 ]
22572257
β”‚
2258-
1 β”‚ \u{200B}foo := 'bar'
2258+
1 β”‚ \u{200b}foo := 'bar'
22592259
───╯
22602260
",
22612261
)
@@ -2267,14 +2267,14 @@ fn unknown_start_of_token_ascii_control_char() {
22672267
Test::new()
22682268
.justfile(
22692269
"
2270-
\0foo := 'bar'
2270+
\u{0000}foo := 'bar'
22712271
",
22722272
)
22732273
.stderr(
2274-
r"Error: Unknown start of token '
2274+
"Error: Unknown start of token '\0' (U+0000)
22752275
╭─[ justfile:1:1 ]
22762276
β”‚
2277-
1 β”‚ foo := 'bar'
2277+
1 β”‚ \0foo := 'bar'
22782278
───╯
22792279
",
22802280
)

0 commit comments

Comments
Β (0)