summaryrefslogtreecommitdiffstats
path: root/vendor/sha-1-0.8.2/tests/lib.rs
blob: 348684b1f2195f381ed4eced3f1871c813010ae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![no_std]
#[macro_use]
extern crate digest;
extern crate sha1;

use digest::dev::{one_million_a, digest_test};

new_test!(sha1_main, "sha1", sha1::Sha1, digest_test);

#[test]
fn sha1_1million_a() {
    let output = include_bytes!("data/one_million_a.bin");
    one_million_a::<sha1::Sha1>(output);
}