prysm-pulse/beacon-chain/core/attestations/attestation_test.go
Raul Jordan 1065617087 Replace Attestation Type Primitive With Proto Generated Type (#1149)
* first commit, remote att types

* no more agg attestation proto

* regen mock

* only attestations

* proto

* att process

* fix att references

* more tests passing

* use att protos

* complete

* Update dependency com_github_deckarep_golang_set to v1 (#1159)

* Update dependency com_github_edsrzf_mmap_go to v1 (#1160)

* Update dependency com_github_go_stack_stack to v1 (#1161)

* Update dependency com_github_rs_cors to v1 (#1162)

* Update dependency in_gopkg_urfave_cli_v1 to v1 (#1163)

* change visibility
2018-12-22 15:30:59 -05:00

16 lines
294 B
Go

package attestations
import (
"testing"
)
func TestContainsValidator(t *testing.T) {
if !ContainsValidator([]byte{7}, []byte{4}) {
t.Error("Attestation should contain validator")
}
if ContainsValidator([]byte{7}, []byte{8}) {
t.Error("Attestation should not contain validator")
}
}