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