#[macro_use]
extern crate unic_char_range;
extern crate unic_ucd_age;
use unic_ucd_age::{Age, UnicodeVersion, UNICODE_VERSION};
#[test]
fn test_assigned_age_micro_value() {
for ch in chars!(..) {
if let Some(age) = Age::of(ch) {
assert_eq!(age.actual().micro, 0);
}
}
}
#[test]
fn test_earliest_assigned_age() {
for ch in chars!(..) {
if let Some(age) = Age::of(ch) {
assert!(
age.actual() >= UnicodeVersion {
major: 1,
minor: 1,
micro: 0,
}
);
}
}
}
#[test]
fn test_latest_assigned_age() {
for ch in chars!(..) {
if let Some(age) = Age::of(ch) {
assert!(age.actual() <= UNICODE_VERSION);
}
}
}