Update to latest fsrs

This commit is contained in:
Damien Elmes 2023-10-18 09:03:23 +10:00
parent 197c486bc0
commit 39bf2f2160
3 changed files with 8 additions and 8 deletions

2
Cargo.lock generated
View File

@ -1477,7 +1477,7 @@ dependencies = [
[[package]]
name = "fsrs"
version = "0.1.0"
source = "git+https://github.com/open-spaced-repetition/fsrs-rs.git?rev=0e7182496f229b8225bc45e7d3e991f834e2d815#0e7182496f229b8225bc45e7d3e991f834e2d815"
source = "git+https://github.com/open-spaced-repetition/fsrs-rs.git?rev=19e7af401496d4e5e8dc3ce35528a95f38b6313d#19e7af401496d4e5e8dc3ce35528a95f38b6313d"
dependencies = [
"burn",
"itertools 0.11.0",

View File

@ -36,7 +36,7 @@ rev = "184b2ca50ed39ca43da13f0b830a463861adb9ca"
[workspace.dependencies.fsrs]
git = "https://github.com/open-spaced-repetition/fsrs-rs.git"
rev = "0e7182496f229b8225bc45e7d3e991f834e2d815"
rev = "19e7af401496d4e5e8dc3ce35528a95f38b6313d"
# path = "../../../fsrs-rs"
[workspace.dependencies]

View File

@ -303,8 +303,8 @@ mod tests {
assert_eq!(
item.starting_state,
Some(MemoryState {
stability: 100.,
difficulty: 4.4642878
stability: 99.999954,
difficulty: 4.4642887
})
);
let mut card = Card::default();
@ -312,8 +312,8 @@ mod tests {
assert_eq!(
card.memory_state,
Some(FsrsMemoryState {
stability: 248.47879,
difficulty: 4.468945
stability: 248.47868,
difficulty: 4.468946
})
);
// but if there's only a single revlog entry, we'll fall back on current card
@ -336,7 +336,7 @@ mod tests {
assert_eq!(
card.memory_state,
Some(FsrsMemoryState {
stability: 123.0,
stability: 122.99994,
difficulty: 6.5147324,
})
);
@ -358,7 +358,7 @@ mod tests {
card.memory_state,
Some(
MemoryState {
stability: 100.0,
stability: 99.999954,
difficulty: 9.692858
}
.into()