fn starts_with() {
"".chars().next() == Some(' ');
Some(' ') != "".chars().next();
+
+ // Ensure that suggestion is escaped correctly
+ "".chars().next() == Some('\n');
+ Some('\n') != "".chars().next();
}
fn chars_cmp_with_unwrap() {
// !s.ends_with('o')
// Nothing here
}
- if s.chars().last().unwrap() != 'o' {
+ if s.chars().last().unwrap() != '\n' {
// !s.ends_with('o')
// Nothing here
}
Some(' ') != "".chars().last();
"".chars().next_back() == Some(' ');
Some(' ') != "".chars().next_back();
+
+ // Ensure that suggestion is escaped correctly
+ "".chars().last() == Some('\n');
+ Some('\n') != "".chars().last();
}