aboutsummaryrefslogtreecommitdiff
path: root/vote/vote_test.go
blob: 7a00ee387f31a991066262b797413d1dc10a1d9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package vote

import (
	"testing"
)

func TestRound(t *testing.T) {
	v, e := newVoteWithRand(false, 0, nil)

	if e != nil {
		t.Fatalf("unexpected error: %v", e)
	}
	if v.bit {
		t.Fatal("expected vote false, but got true")
	}
	if !v.VerifyProofs() {
		t.Fatalf("Proofs not correct! %+v", v)
	}
}