antex 0.2.2

Styled text and tree in terminal
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use antex::{StyledText, never};

#[test]
fn content_fill_should_work() {
  assert_eq!("☺hello   ", format!("{}", never().s("☺hello").fill(' ', 9)));
}

#[test]
fn content_fill_short_should_work() {
  assert_eq!("☺hello", format!("{}", never().s("☺hello").fill(' ', 3)));
}

#[test]
fn content_fill_custom_should_work() {
  assert_eq!("☺hello☺☺☺☺", format!("{}", never().s("☺hello").fill('', 10)));
}