1 | // This crate comprises hacks and glue required to test private functions from tests/ |
---|---|
2 | // |
3 | // Keep this as slim as possible. |
4 | // |
5 | // If you're caught using this outside this crates tests/, you get to clean up the mess. |
6 | |
7 | #[cfg(not(feature = "std"))] |
8 | use crate::no_std_prelude::*; |
9 | |
10 | use crate::stream_safe::StreamSafe; |
11 | |
12 | pub fn stream_safe(s: &str) -> String { |
13 | StreamSafe::new(iter:s.chars()).collect() |
14 | } |
15 | |
16 | pub mod quick_check { |
17 | pub use crate::quick_check::*; |
18 | } |
19 |