Skip to content

Commit

Permalink
test(imt.sol): update lazy tree tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cedoor committed Nov 27, 2023
1 parent e37040b commit 6bba5b0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/imt.sol/test/LazyIMT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe("LazyIMT", () => {
})

describe("# insert", () => {
for (let depth = 1; depth < 6; depth += 1) {
for (let depth = 1; depth < 3; depth += 1) {
it(`Should insert leaves in tree with depth ${depth}`, async () => {
await lazyIMTTest.init(10)

Expand Down Expand Up @@ -114,7 +114,7 @@ describe("LazyIMT", () => {
}

it("Should fail to insert too many leaves", async () => {
const depth = 5
const depth = 3

await lazyIMTTest.init(depth)

Expand All @@ -126,7 +126,7 @@ describe("LazyIMT", () => {
})

it("Should fail to insert leaf outside of field", async () => {
const depth = 5
const depth = 3

await lazyIMTTest.init(depth)

Expand All @@ -137,7 +137,7 @@ describe("LazyIMT", () => {
})

describe("# update", () => {
for (let depth = 1; depth < 5; depth += 1) {
for (let depth = 1; depth < 3; depth += 1) {
it(`Should update leaves in tree with depth ${depth}`, async () => {
await lazyIMTTest.init(depth)

Expand Down Expand Up @@ -210,7 +210,7 @@ describe("LazyIMT", () => {
})

it("Should fail to update with invalid leaf value", async () => {
const depth = 4
const depth = 3

await lazyIMTTest.init(depth)

Expand All @@ -226,7 +226,7 @@ describe("LazyIMT", () => {

describe("# reset", () => {
it("Should reset and reuse tree", async () => {
const depth = 4
const depth = 3

await lazyIMTTest.init(10)

Expand Down

0 comments on commit 6bba5b0

Please sign in to comment.