mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 03:31:20 +00:00
16 lines
294 B
Go
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")
|
||
|
}
|
||
|
}
|