Skip to content

Commit

Permalink
assert length in test_filter_outlier
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock committed Nov 20, 2023
1 parent 88d0794 commit dc9b2fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dataset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,10 @@ mod tests {
let (mut pretrainset, mut trainset): (Vec<FSRSItem>, Vec<FSRSItem>) = dataset
.into_iter()
.partition(|item| item.reviews.len() == 2);
dbg!(pretrainset.len());
dbg!(trainset.len());
assert_eq!(pretrainset.len(), 3315);
assert_eq!(trainset.len(), 10806);
(pretrainset, trainset) = filter_outlier(pretrainset, trainset);
dbg!(pretrainset.len());
dbg!(trainset.len());
assert_eq!(pretrainset.len(), 3265);
assert_eq!(trainset.len(), 10731);
}
}

0 comments on commit dc9b2fe

Please sign in to comment.