func TestHashing(t *testing.T) {
	to := TestObject{
		A: 12345,
		B: 5,
		C: true,
		D: "testing",
	}
	var emptyHash Hash
	h0 := HashObject(to)
	if h0 == emptyHash {
		t.Error("HashObject returned the zero hash!")
	}
	h1 := HashAll(
		int(122),
		byte(115),
		string("test"),
		to,
	)
	if h1 == emptyHash {
		t.Error("HashObject returned the zero hash!")
	}
	h2 := HashBytes(fastrand.Bytes(435))
	if h2 == emptyHash {
		t.Error("HashObject returned the zero hash!")
	}
}
TestHashing uses each of the functions in hash.go and verifies that the
results are as expected.
package crypto
import (
	"bytes"
	"encoding/json"
	"sort"
	"strings"
	"testing"
	"github.com/NebulousLabs/fastrand"
)
type (
	TestObject struct {
		A int
		B byte
		C bool
		D string
	}
)