aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorNathan Vegdahl2021-07-02 07:06:53 +0000
committerNathan Vegdahl2021-07-02 07:06:53 +0000
commit28627f97e9f0d7bc61368ecd221b1a0fc378f3b7 (patch)
tree5479eb9b0e1b10d63ac2468f759d6ae43858cb69 /helix-view/src
parent7961a13007b90840f08390d1ab9822ebbb0740c5 (diff)
Fix empty document test.
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/document.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index bc15da96..86f3dfb8 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -1161,11 +1161,7 @@ mod test {
#[test]
fn test_line_ending() {
- if cfg!(windows) {
- assert_eq!(Document::default().text().to_string(), "\r\n");
- } else {
- assert_eq!(Document::default().text().to_string(), "\n");
- }
+ assert_eq!(Document::default().text().to_string(), "");
}
macro_rules! test_decode {