8000 Add a test with an iterator. · Florob/unicode-normalization@2335c22 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2335c22

Browse files
committed
Add a test with an iterator.
1 parent 1acccec commit 2335c22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ fn test_nfd() {
1515
macro_rules! t {
1616
($input: expr, $expected: expr) => {
1717
assert_eq!($input.nfd().collect::<String>(), $expected);
18+
// A dummy iterator that is not std::str::Chars directly:
19+
assert_eq!($input.chars().map(|c| c).nfd().collect::<String>(), $expected);
1820
}
1921
}
2022
t!("abc", "abc");

0 commit comments

Comments
 (0)
0