Skip to content

Commit

Permalink
refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alpancs committed Mar 16, 2024
1 parent bd6043f commit 54965c0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/quran.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,19 @@ mod tests {
for (_, _, t) in iter() {
set.extend(t.chars());
}
set.iter().map(|c| c.escape_unicode().to_string()).collect()
set.into_iter().collect()
};
assert_eq!(
unique_unicodes,
[
"\\u{20}", "\\u{621}", "\\u{623}", "\\u{624}", "\\u{625}", "\\u{626}", "\\u{627}",
"\\u{628}", "\\u{629}", "\\u{62a}", "\\u{62b}", "\\u{62c}", "\\u{62d}", "\\u{62e}",
"\\u{62f}", "\\u{630}", "\\u{631}", "\\u{632}", "\\u{633}", "\\u{634}", "\\u{635}",
"\\u{636}", "\\u{637}", "\\u{638}", "\\u{639}", "\\u{63a}", "\\u{640}", "\\u{641}",
"\\u{642}", "\\u{643}", "\\u{644}", "\\u{645}", "\\u{646}", "\\u{647}", "\\u{648}",
"\\u{649}", "\\u{64a}", "\\u{64b}", "\\u{64c}", "\\u{64d}", "\\u{64e}", "\\u{64f}",
"\\u{650}", "\\u{651}", "\\u{654}", "\\u{670}", "\\u{6dc}", "\\u{6df}", "\\u{6e0}",
"\\u{6e3}", "\\u{6e5}", "\\u{6e6}", "\\u{6e7}", "\\u{6e8}", "\\u{6ea}", "\\u{6eb}"
'\u{20}', '\u{621}', '\u{623}', '\u{624}', '\u{625}', '\u{626}', '\u{627}',
'\u{628}', '\u{629}', '\u{62a}', '\u{62b}', '\u{62c}', '\u{62d}', '\u{62e}',
'\u{62f}', '\u{630}', '\u{631}', '\u{632}', '\u{633}', '\u{634}', '\u{635}',
'\u{636}', '\u{637}', '\u{638}', '\u{639}', '\u{63a}', '\u{640}', '\u{641}',
'\u{642}', '\u{643}', '\u{644}', '\u{645}', '\u{646}', '\u{647}', '\u{648}',
'\u{649}', '\u{64a}', '\u{64b}', '\u{64c}', '\u{64d}', '\u{64e}', '\u{64f}',
'\u{650}', '\u{651}', '\u{654}', '\u{670}', '\u{6dc}', '\u{6df}', '\u{6e0}',
'\u{6e3}', '\u{6e5}', '\u{6e6}', '\u{6e7}', '\u{6e8}', '\u{6ea}', '\u{6eb}'
]
);
}
Expand Down

0 comments on commit 54965c0

Please sign in to comment.