Skip to content

Commit

Permalink
Update tests for new PRNG
Browse files Browse the repository at this point in the history
  • Loading branch information
PiOverFour committed Jun 12, 2020
1 parent 16d6046 commit d100be0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/tests/specs/ink/Sequence.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
4 changes: 2 additions & 2 deletions src/tests/specs/inkjs/Logic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});

0 comments on commit d100be0

Please sign in to comment.