on master help sign in
Fix empty document test.
commit28627f97e9f0d7bc61368ecd221b1a0fc378f3b7 authorNathan Vegdahl <cessen@cessen.com> dateFri 2 Jul 2021, 00:06 (5 years ago) parent7961a13
1 file changed+1−5
helix-view/src/document.rs+1−5
helix-view/src/document.rs+1−5
@@ -1161,11 +1161,7 @@ mod test {
11611161
11621162 #[test]
11631163 fn test_line_ending() {
1164− if cfg!(windows) {
1165− assert_eq!(Document::default().text().to_string(), "\r\n");
1166− } else {
1167− assert_eq!(Document::default().text().to_string(), "\n");
1168− }
1164+ assert_eq!(Document::default().text().to_string(), "");
11691165 }
11701166
11711167 macro_rules! test_decode {