Skip to content

Commit

Permalink
100% coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar committed Oct 3, 2023
1 parent 6ad8e09 commit d314860
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions blockset/src/sha224.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,12 @@ mod tests {
[0xd14a028c, 0x2a3a2bc9, 0x476102bb, 0x288234c4, 0x15a2b01f, 0x828ea62a, 0xc5b3e42f]
);
}

#[test]
fn runtime_test() {
assert_eq!(
compress([0x8000_0000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
[0xd14a028c, 0x2a3a2bc9, 0x476102bb, 0x288234c4, 0x15a2b01f, 0x828ea62a, 0xc5b3e42f]
);
}
}

0 comments on commit d314860

Please sign in to comment.