repo.or.cz
/
liba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove `#!/usr/bin/env sh`
[liba.git]
/
tests
/
crc64.rs
blob
856426888f79c4dec9dbe1dd27c1dea3475f17cb
1
#[test]
2
fn crc64() {
3
{
4
let ctx = liba::crc64::new_msb(0x000000000000001B);
5
assert_eq!(ctx.eval(b"0123456789", 0), 0xE4FFBEA588AFC790);
6
}
7
{
8
let ctx = liba::crc64::new_lsb(0x42F0E1EBA9EA3693);
9
assert_eq!(ctx.eval(b"0123456789", 0), 0xDA60676A5CDE0008);
10
}
11
}