error_feedback

Crates.ioerror_feedback
lib.rserror_feedback
version0.1.0
sourcesrc
created_at2022-11-23 02:00:01.844834
updated_at2022-11-23 02:00:01.844834
descriptionerror feedback strings
homepage
repositoryhttps://github.com/svencp/error_feedback.git
max_upload_size
id721250
size6,059
Sven (svencp)

documentation

README

error feedback

formatted strings on error feedback

pub enum Feedback{ Info, Warning, Error }

#[test]
fn t001_underline() {
    let s = justify("Hello Goonies!".to_string(), 40, Justify::Center);
    underline_string(s.clone());
    print!("\n");
    let len = s.clone().len();

    assert_eq!(len, 40);
}

#[test]
fn t002_justify() {
    let s = justify("1.5y".to_string(), 7, Justify::Right);
    assert_eq!(s.len(), 7);
}
Commit count: 4

cargo fmt