Update FSRS

We're on the commit prior to
https://github.com/open-spaced-repetition/fsrs-rs/pull/141, as that is
going to require work that will need to wait until after 23.12
This commit is contained in:
Damien Elmes 2023-12-22 13:58:10 +10:00
parent d9f5487815
commit 4908be62ed
3 changed files with 7 additions and 7 deletions

2
Cargo.lock generated
View file

@ -1813,7 +1813,7 @@ dependencies = [
[[package]] [[package]]
name = "fsrs" name = "fsrs"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/open-spaced-repetition/fsrs-rs.git?rev=d8b2aad417346aaab9f72c399cde6119de1da52f#d8b2aad417346aaab9f72c399cde6119de1da52f" source = "git+https://github.com/open-spaced-repetition/fsrs-rs.git?rev=458ed0a55950a0719d4b9b676630638bc30b2d91#458ed0a55950a0719d4b9b676630638bc30b2d91"
dependencies = [ dependencies = [
"burn", "burn",
"itertools 0.12.0", "itertools 0.12.0",

View file

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

View file

@ -341,7 +341,7 @@ mod tests {
item.starting_state, item.starting_state,
Some(MemoryState { Some(MemoryState {
stability: 99.999954, stability: 99.999954,
difficulty: 5.287041, difficulty: 4.966779,
}) })
); );
let mut card = Card { let mut card = Card {
@ -352,8 +352,8 @@ mod tests {
assert_eq!( assert_eq!(
card.memory_state, card.memory_state,
Some(FsrsMemoryState { Some(FsrsMemoryState {
stability: 248.5813, stability: 248.65475,
difficulty: 5.2646275, difficulty: 4.9747725,
}) })
); );
// but if there's only a single revlog entry, we'll fall back on current card // but if there's only a single revlog entry, we'll fall back on current card
@ -377,7 +377,7 @@ mod tests {
card.memory_state, card.memory_state,
Some(FsrsMemoryState { Some(FsrsMemoryState {
stability: 122.99994, stability: 122.99994,
difficulty: 7.0797696 difficulty: 6.859577
}) })
); );
Ok(()) Ok(())
@ -401,7 +401,7 @@ mod tests {
Some( Some(
MemoryState { MemoryState {
stability: 99.999954, stability: 99.999954,
difficulty: 9.857409 difficulty: 9.793356
} }
.into() .into()
) )