From d100be0b535e5b1af1dc380d68e9c81382e7a00d Mon Sep 17 00:00:00 2001 From: Damien Picard Date: Thu, 11 Jun 2020 16:49:22 +0200 Subject: [PATCH] Update tests for new PRNG --- src/tests/specs/ink/Sequence.spec.ts | 2 +- src/tests/specs/inkjs/Logic.spec.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/specs/ink/Sequence.spec.ts b/src/tests/specs/ink/Sequence.spec.ts index fcc424a1..28286712 100644 --- a/src/tests/specs/ink/Sequence.spec.ts +++ b/src/tests/specs/ink/Sequence.spec.ts @@ -43,6 +43,6 @@ describe('Sequences', () => { it('tests all sequence type', () => { loadStory('all_sequence_types'); - expect(story.ContinueMaximally()).toBe('Once: one two\nStopping: one two two two\nDefault: one two two two\nCycle: one two one two\nShuffle: two one one two\nShuffle stopping: one two final final\nShuffle once: two one\n'); + expect(story.ContinueMaximally()).toBe('Once: one two\nStopping: one two two two\nDefault: one two two two\nCycle: one two one two\nShuffle: two one two one\nShuffle stopping: two one final final\nShuffle once: two one\n'); }); }); diff --git a/src/tests/specs/inkjs/Logic.spec.ts b/src/tests/specs/inkjs/Logic.spec.ts index b155ecf6..676cb184 100644 --- a/src/tests/specs/inkjs/Logic.spec.ts +++ b/src/tests/specs/inkjs/Logic.spec.ts @@ -154,7 +154,7 @@ describe('Logic', () => { it('should generate random numbers', () => { story.ChoosePathString('logic.random'); - expect(story.Continue()).toEqual('15\n'); - expect(story.Continue()).toEqual('-24\n'); + expect(story.Continue()).toEqual('81\n'); + expect(story.Continue()).toEqual('8\n'); }); });