v/vlib/crypto/sha1/sha1_test.v

6 lines
149 B
Go
Raw Normal View History

2019-07-15 17:49:01 +02:00
import crypto.sha1
fn test_crypto_sha1() {
assert sha1.sum('This is a sha1 hash.'.bytes()).hex() == '6FF5FA4D5166D5C2576FE56ED1EC2D5AB0FDF936'
}