Skip to content

Commit

Permalink
simplify testing
Browse files Browse the repository at this point in the history
  • Loading branch information
alpancs committed Sep 23, 2024
1 parent fa8e7d2 commit d2dcc07
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions quranize/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ mod tests {

#[test]
fn test_suffix_tree_props() {
let mut t = suffix_tree::SuffixTree::with_capacity(Quranize::EXPECTED_VERTEX_COUNT);
(0..AYA_COUNT)
.zip(QURAN_TXT.split_inclusive('\n'))
.for_each(|(i, s)| t.construct(i, s));
let t = Quranize::new().tree;
assert_eq!(t.vertices.len(), Quranize::EXPECTED_VERTEX_COUNT);
assert_eq!(t.vertices.len(), t.edges.len() + 1);
assert_eq!(t.count_data(0), 77_883);
Expand Down

0 comments on commit d2dcc07

Please sign in to comment.