1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/crypto/sha1/sha1_test.v
2019-07-15 17:49:01 +02:00

6 lines
149 B
Go

import crypto.sha1
fn test_crypto_sha1() {
assert sha1.sum('This is a sha1 hash.'.bytes()).hex() == '6FF5FA4D5166D5C2576FE56ED1EC2D5AB0FDF936'
}