Skip to content

Commit

Permalink
update fast-check
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Sep 8, 2022
1 parent ff02823 commit 049312b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 38 deletions.
58 changes: 23 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"dtslint": "github:gcanti/dtslint",
"eslint": "^8.23.0",
"eslint-plugin-deprecation": "^1.3.2",
"fast-check": "^1.25.1",
"fast-check": "^3.1.3",
"glob": "^7.1.6",
"jest": "^26.4.2",
"mocha": "^5.2.0",
Expand Down
2 changes: 1 addition & 1 deletion test/Array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ describe('Array', () => {
fc.property(
fc.array(fc.integer()).filter((xs) => xs.length % 2 === 0), // Ensures `xs.length` is even
fc.array(fc.integer()),
fc.integer(1, 1).map((x) => x * 2), // Generates `n` to be even so that it evenly divides `xs`
fc.integer({ min: 1, max: 1 }).map((x) => x * 2), // Generates `n` to be even so that it evenly divides `xs`
(xs, ys, n) => {
const as = _.chunksOf(n)(xs).concat(_.chunksOf(n)(ys))
const bs = _.chunksOf(n)(xs.concat(ys))
Expand Down
2 changes: 1 addition & 1 deletion test/ReadonlyArray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ describe('ReadonlyArray', () => {
fc.property(
fc.array(fc.integer()).filter((xs) => xs.length % 2 === 0), // Ensures `xs.length` is even
fc.array(fc.integer()),
fc.integer(1, 1).map((x) => x * 2), // Generates `n` to be even so that it evenly divides `xs`
fc.integer({ min: 1, max: 1 }).map((x) => x * 2), // Generates `n` to be even so that it evenly divides `xs`
(xs, ys, n) => {
const as = _.chunksOf(n)(xs).concat(_.chunksOf(n)(ys))
const bs = _.chunksOf(n)(xs.concat(ys))
Expand Down

0 comments on commit 049312b

Please sign in to comment.