aboutsummaryrefslogtreecommitdiff
path: root/verifysetup/core/crypt_test.go
blob: 7a660560decc3c4a17c8db3ca269a2acc75508ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
package core

import "testing"

func TestCalculateBlockHash(t *testing.T) {
	got, err := CalculateBlockHash([]byte("hello"))
	want := "aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d"

	if got != want || err != nil {
		t.Errorf("got %s, wanted %s", got, want)
	}
}