func TestWhiteDhashHorizontal(t *testing.T) {
	src, _ := OpenImg("./testdata/white_512.png")
	hash, err := DhashHorizontal(src, 8)
	exp := make([]byte, 8)  
	if bytes.Compare(exp, hash) != 0 {
		t.Errorf("white horizontal dhash test [%x] failed: [%x]", exp, hash)
	} else if err != nil {
		t.Errorf("white horizontal dhash test failed with error:", err)
	}
}
Test the horizontal dhash wrapper function using a white image. The
resultant byte array should be all zeros
package imagehash
import (
	"bytes"
	"testing"
)
func TestWhiteDhash(t *testing.T) {
	src, _ := OpenImg("./testdata/white_512.png")
	hash, err := Dhash(src, 8)
	exp := make([]byte, 16)
	if bytes.Compare(exp, hash) != 0 {
		t.Errorf("white dhash test [%x] failed: [%x]", exp, hash)
	} else if err != nil {
		t.Errorf("white dhash test failed with error:", err)
	}
}