Skip to content

Commit

Permalink
AEAD tests: Address wasm32-wasi build warning & clarify use.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Oct 14, 2023
1 parent 7dce5fd commit b314eb4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/aead_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ macro_rules! test_aead {
$(
#[allow(non_snake_case)]
mod $alg { // Provide a separate namespace for each algorithm's test.
#[cfg(not(target_arch = "wasm32"))]
use super::super::*;

#[cfg(target_arch = "wasm32")]
use super::super::{*, test};
#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
use wasm_bindgen_test::wasm_bindgen_test as test;

test_known_answer!(
$alg,
Expand Down

0 comments on commit b314eb4

Please sign in to comment.