Debian Codegraph @

third_party/rust/unicode-normalization/src/__test_api.rs

raw
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 alloc::string::String;
9
10 use crate::stream_safe::StreamSafe;
11
12 pub fn stream_safe(s: &str) -> String {
13 StreamSafe::new(s.chars()).collect()
14 }
15
16 pub mod quick_check {
17 pub use crate::quick_check::*;
18 }