Skip to content

Commit

Permalink
Merge pull request RustCrypto#140 from RustCrypto/block-cipher/fix-te…
Browse files Browse the repository at this point in the history
…st-macro

block-cipher: fix test macros
  • Loading branch information
tarcieri committed May 26, 2020
2 parents 0af4518 + 95718c3 commit ef3f83d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions block-cipher/src/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ macro_rules! new_test {
($name:ident, $test_name:expr, $cipher:ty) => {
#[test]
fn $name() {
use block_cipher_trait::blobby::Blob3Iterator;
use block_cipher_trait::generic_array::typenum::Unsigned;
use block_cipher_trait::generic_array::GenericArray;
use block_cipher_trait::BlockCipher;
use block_cipher::blobby::Blob3Iterator;
use block_cipher::generic_array::typenum::Unsigned;
use block_cipher::generic_array::GenericArray;
use block_cipher::BlockCipher;

fn run_test(key: &[u8], pt: &[u8], ct: &[u8]) -> bool {
let state = <$cipher as BlockCipher>::new_varkey(key).unwrap();
Expand Down Expand Up @@ -111,7 +111,7 @@ macro_rules! bench {
($cipher:path, $key_len:expr) => {
extern crate test;

use block_cipher_trait::BlockCipher;
use block_cipher::BlockCipher;
use test::Bencher;

#[bench]
Expand Down

0 comments on commit ef3f83d

Please sign in to comment.