@@ -91,7 +91,10 @@ mod test {
9191
9292 #[test]
9393 fn test_categorize() {
94− const EOL_TEST_CASE: &str = "\n\r\u{000B}\u{000C}\u{0085}\u{2028}\u{2029}";
94+ #[cfg(not(feature = "unicode-lines"))]
95+ const EOL_TEST_CASE: &str = "\n";
96+ #[cfg(feature = "unicode-lines")]
97+ const EOL_TEST_CASE: &str = "\n\u{000B}\u{000C}\u{0085}\u{2028}\u{2029}";
9598 const WORD_TEST_CASE: &str = "_hello_world_あいうえおー12345678901234567890";
9699 const PUNCTUATION_TEST_CASE: &str =
97100 "!\"#$%&\'()*+,-./:;<=>?@[\\]^`{|}~!”#$%&’()*+、。:;<=>?@「」^`{|}~";