Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock committed Dec 23, 2024
1 parent 6694161 commit 5c7ad53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/optimal_retention.rs
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ mod tests {
simulate(&config, &DEFAULT_PARAMETERS, 0.9, None, None)?;
assert_eq!(
memorized_cnt_per_day[memorized_cnt_per_day.len() - 1],
6898.48
6781.4946
);
Ok(())
}
Expand Down Expand Up @@ -1066,7 +1066,7 @@ mod tests {
results.1.to_vec(),
vec![
0, 15, 18, 38, 64, 64, 80, 89, 95, 95, 100, 96, 107, 118, 120, 114, 126, 123, 139,
167, 158, 156, 167, 161, 154, 177, 162, 148, 165, 156
167, 158, 156, 167, 161, 154, 178, 163, 151, 160, 151
]
);
assert_eq!(
Expand All @@ -1083,7 +1083,7 @@ mod tests {
..Default::default()
};
let results = simulate(&config, &DEFAULT_PARAMETERS, 0.9, None, None)?;
assert_eq!(results.0[results.0.len() - 1], 6460.082);
assert_eq!(results.0[results.0.len() - 1], 6484.7144);
Ok(())
}

Expand Down

0 comments on commit 5c7ad53

Please sign in to comment.