Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
alpancs committed Mar 16, 2024
1 parent cf868aa commit 12d9577
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,10 @@ mod tests {

#[test]
fn test_clean_aya() {
for (_, _, q) in quran::iter() {
let clean_q = clean_aya(q);
assert_eq!(q.word_suffixes().count(), clean_q.word_suffixes().count());
for (s, a, q) in quran::iter() {
let q_words = q.word_suffixes().count();
let clean_q_words = clean_aya(q).word_suffixes().count();
assert_eq!(q_words, clean_q_words, "sura={} aya={}", s, a);
}
}

Expand Down

0 comments on commit 12d9577

Please sign in to comment.