Update fsrs-rs

This commit is contained in:
Damien Elmes 2023-11-13 10:13:20 +10:00
parent bb0614d9ac
commit b6102d0310
3 changed files with 6 additions and 6 deletions

2
Cargo.lock generated
View file

@ -1457,7 +1457,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=725417fe310b74a719e18c2127f64223be1cb669#725417fe310b74a719e18c2127f64223be1cb669" source = "git+https://github.com/open-spaced-repetition/fsrs-rs.git?rev=67163045ba9916e8a41f384fdb5ea414773139bd#67163045ba9916e8a41f384fdb5ea414773139bd"
dependencies = [ dependencies = [
"burn", "burn",
"itertools 0.11.0", "itertools 0.11.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 = "725417fe310b74a719e18c2127f64223be1cb669" rev = "67163045ba9916e8a41f384fdb5ea414773139bd"
# path = "../../../fsrs-rs" # path = "../../../fsrs-rs"
[workspace.dependencies] [workspace.dependencies]

View file

@ -318,7 +318,7 @@ mod tests {
item.starting_state, item.starting_state,
Some(MemoryState { Some(MemoryState {
stability: 99.999954, stability: 99.999954,
difficulty: 4.4642887 difficulty: 4.46429
}) })
); );
let mut card = Card::default(); let mut card = Card::default();
@ -326,8 +326,8 @@ mod tests {
assert_eq!( assert_eq!(
card.memory_state, card.memory_state,
Some(FsrsMemoryState { Some(FsrsMemoryState {
stability: 248.47868, stability: 248.58453,
difficulty: 4.468946 difficulty: 4.4689474
}) })
); );
// 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
@ -351,7 +351,7 @@ mod tests {
card.memory_state, card.memory_state,
Some(FsrsMemoryState { Some(FsrsMemoryState {
stability: 122.99994, stability: 122.99994,
difficulty: 6.5147324, difficulty: 6.5147333
}) })
); );
} }