Skip to content

Commit

Permalink
fix tests quranize wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
alpancs committed Sep 24, 2024
1 parent 1e185db commit 3d6dce5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web-app/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ mod tests {
#[test]
fn test_encode() {
let q = JsQuranize::new();
let l = &q.get_locations(&q.encode("bismillah")[0].quran)[0];
let locs = &q.get_locations(&q.encode("bismillah")[0].quran);
let l = locs.iter().find(|l| l.sura_number == 1).unwrap();
assert_eq!(1, l.sura_number);
assert_eq!(1, l.aya_number);
assert_eq!("", l.before_text);
Expand Down

0 comments on commit 3d6dce5

Please sign in to comment.