#![forbid(
bad_style,
missing_debug_implementations,
missing_docs,
unconditional_recursion,
unsafe_code
)]
#[macro_use]
extern crate unic_char_range;
use unic_char::basics::{is_noncharacter, is_private_use, unicode_notation};
use unic_char::range::CharRange;
use unic_ucd::age::Age;
#[test]
fn test_char_range_assigned_normal_planes() {
let assigned_normal_planes = CharRange::assigned_normal_planes();
for codepoint in CharRange::all() {
let notation = unicode_notation(codepoint).to_string();
assert_eq!(
(
¬ation,
(
assigned_normal_planes.contains(codepoint)
|| is_noncharacter(codepoint)
|| is_private_use(codepoint)
|| Age::of(codepoint) == None
|| chars!('\u{e0000}'..='\u{e01ef}').contains(codepoint)
)
),
(¬ation, true)
);
}
}