From 0e57fa796f0783ea0c8fad532a443987a965dd9f Mon Sep 17 00:00:00 2001 From: Jarrett Ye Date: Thu, 12 Sep 2024 11:22:00 +0800 Subject: [PATCH] Update FSRSV5.test.ts --- __tests__/FSRSV5.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/FSRSV5.test.ts b/__tests__/FSRSV5.test.ts index 1445057..3ea1f9a 100644 --- a/__tests__/FSRSV5.test.ts +++ b/__tests__/FSRSV5.test.ts @@ -133,8 +133,8 @@ describe('get retrievability', () => { test('return retrievability percentage for review cards', () => { const card = createEmptyCard('2023-12-01 04:00:00') const sc = fsrs.repeat(card, '2023-12-01 04:05:00') - const r = [undefined, undefined, undefined, '90.26%'] - const r_number = [undefined, undefined, undefined, 0.90260891] + const r = ['100.00%', '100.00%', '100.00%', '90.26%'] + const r_number = [1, 1, 1, 0.90260891] Grades.forEach((grade, index) => { expect(fsrs.get_retrievability(sc[grade].card, sc[grade].card.due)).toBe( r[index]