unic_ucd_bidi/
bidi_mirrored.rschar_property! {
pub struct BidiMirrored(bool) {
abbr => "Bidi_M";
long => "Bidi_Mirrored";
human => "Bidi Mirrored";
data_table_path => "../tables/bidi_mirrored.rsv";
}
pub fn is_bidi_mirrored(char) -> bool;
}
#[cfg(test)]
mod tests {
#[test]
fn test_values() {
use super::is_bidi_mirrored;
assert_eq!(is_bidi_mirrored('\u{0000}'), false);
assert_eq!(is_bidi_mirrored('\u{0021}'), false);
assert_eq!(is_bidi_mirrored('\u{0027}'), false);
assert_eq!(is_bidi_mirrored('\u{0028}'), true);
assert_eq!(is_bidi_mirrored('\u{0029}'), true);
assert_eq!(is_bidi_mirrored('\u{002a}'), false);
assert_eq!(is_bidi_mirrored('\u{003b}'), false);
assert_eq!(is_bidi_mirrored('\u{003c}'), true);
assert_eq!(is_bidi_mirrored('\u{003d}'), false);
assert_eq!(is_bidi_mirrored('\u{007a}'), false);
assert_eq!(is_bidi_mirrored('\u{007b}'), true);
assert_eq!(is_bidi_mirrored('\u{007c}'), false);
assert_eq!(is_bidi_mirrored('\u{007d}'), true);
assert_eq!(is_bidi_mirrored('\u{007e}'), false);
assert_eq!(is_bidi_mirrored('\u{0f39}'), false);
assert_eq!(is_bidi_mirrored('\u{0f3a}'), true);
assert_eq!(is_bidi_mirrored('\u{0f3b}'), true);
assert_eq!(is_bidi_mirrored('\u{0f3c}'), true);
assert_eq!(is_bidi_mirrored('\u{0f3d}'), true);
assert_eq!(is_bidi_mirrored('\u{0f3e}'), false);
assert_eq!(is_bidi_mirrored('\u{0f3f}'), false);
assert_eq!(is_bidi_mirrored('\u{ff5c}'), false);
assert_eq!(is_bidi_mirrored('\u{ff5d}'), true);
assert_eq!(is_bidi_mirrored('\u{ff5e}'), false);
assert_eq!(is_bidi_mirrored('\u{ff5f}'), true);
assert_eq!(is_bidi_mirrored('\u{ff60}'), true);
assert_eq!(is_bidi_mirrored('\u{ff61}'), false);
assert_eq!(is_bidi_mirrored('\u{ff61}'), false);
assert_eq!(is_bidi_mirrored('\u{ff62}'), true);
assert_eq!(is_bidi_mirrored('\u{ff63}'), true);
assert_eq!(is_bidi_mirrored('\u{ff64}'), false);
assert_eq!(is_bidi_mirrored('\u{10000}'), false);
assert_eq!(is_bidi_mirrored('\u{10001}'), false);
assert_eq!(is_bidi_mirrored('\u{20000}'), false);
assert_eq!(is_bidi_mirrored('\u{30000}'), false);
assert_eq!(is_bidi_mirrored('\u{40000}'), false);
assert_eq!(is_bidi_mirrored('\u{50000}'), false);
assert_eq!(is_bidi_mirrored('\u{60000}'), false);
assert_eq!(is_bidi_mirrored('\u{70000}'), false);
assert_eq!(is_bidi_mirrored('\u{80000}'), false);
assert_eq!(is_bidi_mirrored('\u{90000}'), false);
assert_eq!(is_bidi_mirrored('\u{a0000}'), false);
assert_eq!(is_bidi_mirrored('\u{b0000}'), false);
assert_eq!(is_bidi_mirrored('\u{c0000}'), false);
assert_eq!(is_bidi_mirrored('\u{d0000}'), false);
assert_eq!(is_bidi_mirrored('\u{e0000}'), false);
assert_eq!(is_bidi_mirrored('\u{efffe}'), false);
assert_eq!(is_bidi_mirrored('\u{effff}'), false);
assert_eq!(is_bidi_mirrored('\u{f0000}'), false);
assert_eq!(is_bidi_mirrored('\u{f0001}'), false);
assert_eq!(is_bidi_mirrored('\u{ffffe}'), false);
assert_eq!(is_bidi_mirrored('\u{fffff}'), false);
assert_eq!(is_bidi_mirrored('\u{100000}'), false);
assert_eq!(is_bidi_mirrored('\u{100001}'), false);
assert_eq!(is_bidi_mirrored('\u{10fffe}'), false);
assert_eq!(is_bidi_mirrored('\u{10ffff}'), false);
}
}