Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-core/src/chars.rs')
| -rw-r--r-- | helix-core/src/chars.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/helix-core/src/chars.rs b/helix-core/src/chars.rs index 817bbb86..54991574 100644 --- a/helix-core/src/chars.rs +++ b/helix-core/src/chars.rs @@ -91,10 +91,7 @@ mod test { #[test] fn test_categorize() { - #[cfg(not(feature = "unicode-lines"))] - const EOL_TEST_CASE: &str = "\n"; - #[cfg(feature = "unicode-lines")] - const EOL_TEST_CASE: &str = "\n\u{000B}\u{000C}\u{0085}\u{2028}\u{2029}"; + const EOL_TEST_CASE: &str = "\n\r\u{000B}\u{000C}\u{0085}\u{2028}\u{2029}"; const WORD_TEST_CASE: &str = "_hello_world_あいうえおー12345678901234567890"; const PUNCTUATION_TEST_CASE: &str = "!\"#$%&\'()*+,-./:;<=>?@[\\]^`{|}~!”#$%&’()*+、。:;<=>?@「」^`{|}~"; |