2
0
mirror of https://github.com/status-im/op-geth.git synced 2025-01-26 22:49:02 +00:00

16 lines
219 B
Go
Raw Normal View History

2015-03-17 13:24:12 +01:00
package common
import "testing"
func TestBytesConversion(t *testing.T) {
bytes := []byte{5}
hash := BytesToHash(bytes)
var exp Hash
exp[31] = 5
if hash != exp {
t.Errorf("expected %x got %x", exp, hash)
}
}