-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the issue #124 fixture work on Windows. 🤦♀️
- Loading branch information
Showing
1 changed file
with
1 addition
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2382,6 +2382,7 @@ mod test { | |
let mut map = OrdMap::new(); | ||
let contents = include_str!("test-fixtures/issue_124.txt"); | ||
for line in contents.split('\n') { | ||
let line = line.trim(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mcobzarenco
|
||
if line.starts_with("insert ") { | ||
map.insert(line[7..].parse::<u32>().unwrap(), 0); | ||
} else if line.starts_with("remove ") { | ||
|
Wouldn't
contents.lines()
be a better choice instead ofsplit
?