8000 Remove test_casefold. · froydnj/unicode-normalization@f2eb73d · GitHub
[go: up one dir, main page]

Skip to content

Commit f2eb73d

Browse files
committed
Remove test_casefold.
It’s not that useful, its input being all within ASCII and unaffected by normalization, and it sets of bad example of `char.to_lowercase().next()`, ignoring the rest of the `ToLowercase` iterator.
1 parent 4f6a6ca commit f2eb73d

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//!
2121
//! fn main() {
2222
//! assert_eq!(compose('A','\u{30a}'), Some('Å'));
23-
//!
23+
//!
2424
//! let s = "ÅΩ";
2525
//! let c = UnicodeNormalization::nfc(s).collect::<String>();
2626
//! assert_eq!(c, "ÅΩ");

src/test.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@
1010

1111
use super::str::UnicodeNormalization;
1212

13-
#[test]
14-
fn test_casefold() {
15-
let u = "ABCDEFGH";
16-
let l = "abcdefgh";
17-
assert_eq!(&u.nfd().map(|c| c.to_lowercase().next().unwrap_or(c))
18-
.nfkd().map(|c| c.to_lowercase().next().unwrap_or(c))
19-
.nfkd().collect::<String>()[..],
20-
l);
21-
}
22-
2313
#[test]
2414
fn test_nfd() {
2515
macro_rules! t {

0 commit comments

Comments
 (0)
0