use alloc::string::String;
use unicode_security::GeneralSecurityProfile;
pub(super) fn skeleton(input: &str) -> String {
use unicode_security::confusable_detection::skeleton;
skeleton(input).collect()
}
#[allow(dead_code)]
fn _identifier_status_witness(c: char) -> bool {
c.identifier_allowed()
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn cyrillic_a_collapses_to_latin_a() {
let cyr = skeleton("а");
let lat = skeleton("a");
assert_eq!(cyr, lat);
}
#[test]
fn paypal_homograph() {
let s1 = skeleton("раураl");
let s2 = skeleton("paypal");
assert_eq!(s1, s2);
}
#[test]
fn ascii_passthrough() {
assert_eq!(skeleton("hello"), "hello");
}
}