Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions crates/base64-simd/tests/it.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use base64_simd::{AsOut, Base64};
use base64_simd::{STANDARD, STANDARD_NO_PAD, URL_SAFE, URL_SAFE_NO_PAD};

#[allow(unused_imports)]
use rand::{Rng, RngExt};
use rand::Rng;

fn rand_bytes(n: usize) -> Vec<u8> {
let mut bytes = vec![0u8; n];
Expand Down Expand Up @@ -179,6 +178,8 @@ fn parallel_encode() {
#[cfg(feature = "alloc")]
#[test]
fn precise_decoded_length() {
use rand::RngExt;

// true positive
let tp_cases: &[(&Base64, &str, usize)] = &[
(&STANDARD, "", 0), //
Expand Down
5 changes: 3 additions & 2 deletions crates/unicode-simd/tests/it.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::ops::Not;

#[allow(unused_imports)]
use rand::{Rng, RngExt};
use rand::Rng;

fn rand_bytes(n: usize) -> Vec<u8> {
let mut bytes = vec![0u8; n];
Expand All @@ -23,6 +22,8 @@ macro_rules! dbgmsg {
#[cfg_attr(not(target_arch = "wasm32"), test)]
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)]
fn random() {
use rand::RngExt;

for n in 0..256 {
dbgmsg!("n = {n}");

Expand Down