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

  1. package blockchain
  2. import "testing"
  3. func Test_Genesis_block(t *testing.T) {
  4. // Generate_Genesis_Block()
  5. /*var bl Block
  6. serialized := bl.Serialize()
  7. err := bl.Deserialize(serialized)
  8. if err != nil {
  9. t.Error("Deserialization test failed for NULL block\n")
  10. }
  11. serialized2 := bl.Serialize()
  12. if bytes.Equal(serialized, serialized2) {
  13. t.Error("Deserialization test failed for NULL block\n")
  14. return
  15. }*/
  16. }