Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions proof/proof_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -600,16 +600,16 @@ func TestSubtreeConsistency(t *testing.T) {

func TestInclusionSucceedsUpToTreeSize(t *testing.T) {
const maxSize = uint64(555)
for ts := uint64(1); ts <= maxSize; ts++ {
for i := ts; i < ts; i++ {
for ts := range maxSize + 1 {
for i := range ts {
if _, err := Inclusion(i, ts); err != nil {
t.Errorf("Inclusion(ts:%d, i:%d) = %v", ts, i, err)
}
}
}
}

func TestInclusionSubtreeSucceedsUpToTreeSize(t *testing.T) {
func TestSubtreeInclusionSucceedsUpToTreeSize(t *testing.T) {
const maxSize = uint64(555)
for sbe := uint64(1); sbe <= maxSize; sbe++ {
for sbs := range sbe {
Expand Down Expand Up @@ -824,9 +824,9 @@ func inclusion(t *testing.T, index, size uint64) Nodes {

func TestFindSubtrees(t *testing.T) {
for _, tc := range []struct {
start, end uint64
wantStart, wantMid, wantEnd uint64
wantErr bool
start, end uint64
wantStart, wantMid, wantEnd uint64
wantErr bool
}{
// Single entry subtrees:
{start: 0, end: 1, wantStart: 0, wantMid: 1, wantEnd: 1},
Expand Down
Loading