mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-24 12:48:55 +00:00
tests: work around intellij-rust/intellij-rust#5368
The new `.editorconfig` tells editors to strip trailing whitespace, but IntelliJ has a bug where it strips trailing whitespace even inside multi-line strings. We can work around it in the cases we have because they're regexes, so `[ ]` works as a space.
This commit is contained in:
parent
fbd376df43
commit
b1301fd761
1 changed files with 5 additions and 5 deletions
|
@ -28,8 +28,8 @@ fn smoke_test() {
|
|||
assert_eq!(output.status, 0);
|
||||
let stdout_string = output.stdout_string();
|
||||
let output_regex = Regex::new(
|
||||
"^Parent commit: 000000000000
|
||||
Working copy : ([[:xdigit:]]+)
|
||||
"^Parent commit: 000000000000[ ]
|
||||
Working copy : ([[:xdigit:]]+)[ ]
|
||||
The working copy is clean
|
||||
$",
|
||||
)
|
||||
|
@ -56,8 +56,8 @@ $",
|
|||
assert_eq!(output.status, 0);
|
||||
let stdout_string = output.stdout_string();
|
||||
let output_regex = Regex::new(
|
||||
"^Parent commit: 000000000000
|
||||
Working copy : ([[:xdigit:]]+)
|
||||
"^Parent commit: 000000000000[ ]
|
||||
Working copy : ([[:xdigit:]]+)[ ]
|
||||
Working copy changes:
|
||||
A file1
|
||||
A file2
|
||||
|
@ -106,7 +106,7 @@ $",
|
|||
assert_eq!(output.status, 0);
|
||||
let stdout_string = output.stdout_string();
|
||||
let output_regex = Regex::new(
|
||||
"^Working copy now at: [[:xdigit:]]+
|
||||
"^Working copy now at: [[:xdigit:]]+[ ]
|
||||
$",
|
||||
)
|
||||
.unwrap();
|
||||
|
|
Loading…
Reference in a new issue