package main import ( "fmt" "testing" ) func TestExample(t *testing.T) { if fmt.Sprintf("%x", doubleHash(nil)) != "5df6e0e2761359d30a8275058e299fcc0381534545f55cf43e41983f5d4c9456" { t.Fatal("wrong hash") } }