Skip to content

Commit

Permalink
lt => lte
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrent committed Aug 9, 2023
1 parent 7713f1a commit 4ca7e90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/Furnace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ describe(`FurnaceP${IMPLEMENTATION} contract`, () => {

// Should have updated lastPayout + lastPayoutBal
expect(await furnace.lastPayout()).to.be.closeTo(await getLatestBlockTimestamp(), 12)
expect(await furnace.lastPayout()).to.be.lt(await getLatestBlockTimestamp())
expect(await furnace.lastPayout()).to.be.lte(await getLatestBlockTimestamp())
expect(await furnace.lastPayoutBal()).to.equal(bn('10e18'))

// Advance 99 periods -- should melt at old ratio
Expand All @@ -472,7 +472,7 @@ describe(`FurnaceP${IMPLEMENTATION} contract`, () => {

// Should have updated lastPayout + lastPayoutBal
expect(await furnace.lastPayout()).to.be.closeTo(await getLatestBlockTimestamp(), 12)
expect(await furnace.lastPayout()).to.be.lt(await getLatestBlockTimestamp())
expect(await furnace.lastPayout()).to.be.lte(await getLatestBlockTimestamp())
expect(await furnace.lastPayoutBal()).to.equal(bn('10e18')) // no change

// Unfreeze and advance 1 period
Expand All @@ -482,7 +482,7 @@ describe(`FurnaceP${IMPLEMENTATION} contract`, () => {

// Should have updated lastPayout + lastPayoutBal
expect(await furnace.lastPayout()).to.be.closeTo(await getLatestBlockTimestamp(), 12)
expect(await furnace.lastPayout()).to.be.lt(await getLatestBlockTimestamp())
expect(await furnace.lastPayout()).to.be.lte(await getLatestBlockTimestamp())
expect(await furnace.lastPayoutBal()).to.equal(bn('9.999e18'))
})
})
Expand Down

0 comments on commit 4ca7e90

Please sign in to comment.