Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
xpl committed Feb 4, 2024
1 parent c9ae859 commit 8d67229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/benchmark/index.tsx
Expand Up @@ -25,7 +25,7 @@ function defaultEqual(a: any, b: any) {
}

export function checkSoundness({ initialValues, equal = defaultEqual, tests }: BenchmarkInput) {
if (equal(initialValues(), initialValues())) {
if (deepEqual(initialValues(), initialValues())) {
throw new Error('initialValue() must return random values!')
}
if (!tests.length) {
Expand Down

0 comments on commit 8d67229

Please sign in to comment.