ctl-text 0.7.5

Styled text for terminals: safe spans, cell widths, wrapping, and truncation
Documentation
//! The Unicode versions behind widths and cluster boundaries are pinned, so
//! an upgrade of either data set is a reviewed change.

use ctl_text::{UNICODE_VERSIONS, UnicodeVersion};

const PINNED: UnicodeVersion = UnicodeVersion {
    major: 17,
    minor: 0,
    update: 0,
};

const UPGRADE: &str = "a dependency upgrade moved a Unicode version: re-read the width and cluster tests, then update the pin";

#[test]
fn the_width_data_is_on_the_pinned_version() {
    assert_eq!(UNICODE_VERSIONS.width, PINNED, "{UPGRADE}");
}

#[test]
fn the_segmentation_data_is_on_the_pinned_version() {
    assert_eq!(UNICODE_VERSIONS.segmentation, PINNED, "{UPGRADE}");
}