Skip to content

Commit 5c7ad53

Browse files
committed
update unit test
1 parent 6694161 commit 5c7ad53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/optimal_retention.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ mod tests {
916916
simulate(&config, &DEFAULT_PARAMETERS, 0.9, None, None)?;
917917
assert_eq!(
918918
memorized_cnt_per_day[memorized_cnt_per_day.len() - 1],
919-
6898.48
919+
6781.4946
920920
);
921921
Ok(())
922922
}
@@ -1066,7 +1066,7 @@ mod tests {
10661066
results.1.to_vec(),
10671067
vec![
10681068
0, 15, 18, 38, 64, 64, 80, 89, 95, 95, 100, 96, 107, 118, 120, 114, 126, 123, 139,
1069-
167, 158, 156, 167, 161, 154, 177, 162, 148, 165, 156
1069+
167, 158, 156, 167, 161, 154, 178, 163, 151, 160, 151
10701070
]
10711071
);
10721072
assert_eq!(
@@ -1083,7 +1083,7 @@ mod tests {
10831083
..Default::default()
10841084
};
10851085
let results = simulate(&config, &DEFAULT_PARAMETERS, 0.9, None, None)?;
1086-
assert_eq!(results.0[results.0.len() - 1], 6460.082);
1086+
assert_eq!(results.0[results.0.len() - 1], 6484.7144);
10871087
Ok(())
10881088
}
10891089

0 commit comments

Comments
 (0)