Skip to content

Commit

Permalink
fix soundness check
Browse files Browse the repository at this point in the history
  • Loading branch information
xpl committed Feb 4, 2024
1 parent f9419bd commit 73c8730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/benchmark/index.tsx
Expand Up @@ -52,7 +52,7 @@ export function checkSoundness({ initialValues, equal = defaultEqual, tests }: B
}
const seed = initialValues()
const result0 = tests[0](seed[tests[0].name])
for (const test of tests) {
for (const test of tests.slice(1)) {
const result = test(seed[test.name])
if (!equal(result, result0)) {
throw new Error(`The output of ${test.name}() must be the same as of ${tests[0].name}()`)
Expand Down

0 comments on commit 73c8730

Please sign in to comment.