We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e0a4cf commit 773a037Copy full SHA for 773a037
tests/testsuite/message_format.rs
@@ -120,7 +120,10 @@ fn cargo_renders_ansi() {
120
121
p.cargo("check --message-format json-diagnostic-rendered-ansi")
122
.with_status(101)
123
- .with_stdout_contains("[..]\\u001b[38;5;9merror[..]")
+ // Because 1b is the start of an ANSI escape sequence, checking for it
124
+ // allows us to verify that ANSI colors are being emitted without
125
+ // looking for specific color codes, that may change over time.
126
+ .with_stdout_contains("[..]\\u001b[..]")
127
.run();
128
}
129
0 commit comments