Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 7060c72

Browse files
committed
Fix cmd_format_utf16_range test on Windows
1 parent 3c29b47 commit 7060c72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,7 @@ fn cmd_format_utf16_range() {
13001300
let new_text: Vec<_> = result
13011301
.iter()
13021302
.map(|o| o["newText"].as_str().unwrap())
1303+
.map(|text: &str| text.replace('\r', ""))
13031304
.collect();
13041305
// Actual formatting isn't important - what is, is that the buffer isn't
13051306
// malformed and code stays semantically equivalent.

0 commit comments

Comments
 (0)