From edc99c45a6a3ae6595c88373cffd03555f5ac206 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..87162a2c 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: one two\n'); }); }); diff --git a/src/tests/specs/inkjs/Logic.spec.ts b/src/tests/specs/inkjs/Logic.spec.ts index b155ecf6..75123665 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('39\n'); + expect(story.Continue()).toEqual('16\n'); }); });