The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
woop/core/genesis_util_test.go

20 lines
433 B

package core
import (
"strings"
"testing"
)
func TestEncodeGenesisConfig(t *testing.T) {
fileName := "genesis_block_test.json"
s := EncodeGenesisConfig(fileName)
genesisAcc := decodePrealloc(s)
for k := range genesisAcc {
key := strings.ToLower(k.Hex())
if key != "0xb7a2c103728b7305b5ae6e961c94ee99c9fe8e2b" && key != "0xb498bb0f520005b6216a4425b75aa9adc52d622b" {
t.Errorf("EncodeGenesisConfig incorrect")
}
}
}