blocks_test.go 218 Bytes
Newer Older
1 2 3 4 5 6 7 8
package blocks

import "testing"

func TestBlocksBasic(t *testing.T) {

	// Test empty data
	empty := []byte{}
9
	NewBlock(empty)
10 11

	// Test nil case
12
	NewBlock(nil)
13 14

	// Test some data
15
	NewBlock([]byte("Hello world!"))
16
}