ctl-core 0.0.2

Shared clap chassis for the *ctl CLIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! ANSI wrap / empty.
#![allow(missing_docs)]
#![cfg(feature = "color")]

#[test]
fn empty_stays_empty() {
    assert_eq!(ctl_core::style::styled(ctl_core::style::OPTION, ""), "");
}

#[test]
fn wraps_nonempty() {
    let out = ctl_core::style::styled(ctl_core::style::OPTION, "--help");
    assert!(out.contains("--help"));
    assert_ne!(out, "--help");
}