use hoodwink@2.0.0
This commit is contained in:
parent
07fcbe5890
commit
1c64094c29
2 changed files with 6 additions and 6 deletions
test
|
@ -187,8 +187,8 @@ describe('ECPair', function () {
|
|||
})
|
||||
|
||||
it('loops until d is within interval [1, n) : 1', hoodwink(function () {
|
||||
const rng = this.stub(function f () {
|
||||
if (f.calls === 0) return ZERO // 0
|
||||
const rng = this.stub(function () {
|
||||
if (rng.calls === 0) return ZERO // 0
|
||||
return ONE // >0
|
||||
}, 2)
|
||||
|
||||
|
@ -196,9 +196,9 @@ describe('ECPair', function () {
|
|||
}))
|
||||
|
||||
it('loops until d is within interval [1, n) : n - 1', hoodwink(function () {
|
||||
const rng = this.stub(function f () {
|
||||
if (f.calls === 0) return ZERO // <1
|
||||
if (f.calls === 1) return GROUP_ORDER // >n-1
|
||||
const rng = this.stub(function () {
|
||||
if (rng.calls === 0) return ZERO // <1
|
||||
if (rng.calls === 1) return GROUP_ORDER // >n-1
|
||||
return GROUP_ORDER_LESS_1 // n-1
|
||||
}, 3)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue