Skip to content

Commit

Permalink
Fix wrong bias factor used in tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
dubzzz committed May 10, 2018
1 parent 778049e commit 886a19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prebuild/tuple.ts
Expand Up @@ -13,7 +13,7 @@ const classFor = (num: number): string =>
return this.tupleArb.generate(mrng) as Shrinkable<[${txCommas(num)}]>;
}
withBias(freq: number) {
return new Tuple${num}Arbitrary(${commas(num, v => `this.arb${v}.withBias(1)`)});
return new Tuple${num}Arbitrary(${commas(num, v => `this.arb${v}.withBias(freq)`)});
}
};
`;
Expand Down

0 comments on commit 886a19a

Please sign in to comment.