The following test fails since the from implementation doesn't check for ASCII vs Unicode encoding, and always maps to unicode even for ASCII strings.
#[cfg(test)]
mod tests {
use unicase::UniCase;
#[test]
fn unicase_ascii() {
let unicase = UniCase::new("Hello");
assert!(unicase.is_ascii());
let unicase: UniCase<&str> = UniCase::from("Hello");
assert!(unicase.is_ascii());
}
}