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.

24 lines
421 B

package blockchain
import "testing"
func Test_Genesis_block(t *testing.T) {
// Generate_Genesis_Block()
/*var bl Block
serialized := bl.Serialize()
err := bl.Deserialize(serialized)
if err != nil {
t.Error("Deserialization test failed for NULL block\n")
}
serialized2 := bl.Serialize()
if bytes.Equal(serialized, serialized2) {
t.Error("Deserialization test failed for NULL block\n")
return
}*/
}