// +build all general package main import ( "testing" ) func TestMd5Hash(t *testing.T) { hash := "f9d08276bc85d30d578e8883f3c7e843" testHash := Md5Hash("md5hash") if hash != testHash { t.Fatal("Expected %s as hash. Got %s.", hash, testHash) } }