git.gammaspectra.live/P2Pool/consensus/v3@v3.8.0/monero/crypto/hash_test.go (about)

     1  package crypto
     2  
     3  import "testing"
     4  
     5  func TestHash(t *testing.T) {
     6  	h := PooledKeccak256([]byte("test")).String()
     7  
     8  	if h != "9c22ff5f21f0b81b113e63f7db6da94fedef11b2119b4088b89664fb9a3cb658" {
     9  		t.Fatalf("got %s, expected %s", h, "9c22ff5f21f0b81b113e63f7db6da94fedef11b2119b4088b89664fb9a3cb658")
    10  	}
    11  }