Skip to content

Commit 147d8a1

Browse files
author
Beau Shinkle
committed
Annotate leaf selection
1 parent 58bc5d8 commit 147d8a1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/sortitionTreeTest.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ describe("SortitionTree", () => {
267267
const index1 = 450
268268
const index2 = 451
269269

270+
// alice is assigned weights [0-450] (451 values) and bob has weight
271+
// [451-2434] (1984 values).
270272
const position1 = await sortition.publicPickWeightedLeaf(index1)
271273
expect(position1).to.be.equal(0)
272274

0 commit comments

Comments
 (0)