Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Laux committed Nov 16, 2023
1 parent 778b4de commit 13a9955
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/emoji/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use deltachat_message_parser::parser::is_emoji::{emoji, get_first_emoji, count_emojis_if_only_contains_emoji};
use deltachat_message_parser::parser::is_emoji::{
count_emojis_if_only_contains_emoji, emoji, get_first_emoji,
};

#[test]
fn test_all_desktop_emoji_picker_emojis() {
Expand Down Expand Up @@ -29,9 +31,13 @@ fn test_all_desktop_emoji_picker_emojis_are_single_emojis() {
let mut failed = vec![];
for case in testcases {
if count_emojis_if_only_contains_emoji(case) != Some(1) {
let result= get_first_emoji(case);
let result = get_first_emoji(case);
if result != Some(case) {
print!("{case}:\n{:?}\n{:?}\n", result.map(|r|r.chars()), case.chars());
print!(
"{case}:\n{:?}\n{:?}\n",
result.map(|r| r.chars()),
case.chars()
);
failed.push(case);
}
}
Expand Down

0 comments on commit 13a9955

Please sign in to comment.