Crates.io | error_feedback |
lib.rs | error_feedback |
version | 0.1.0 |
source | src |
created_at | 2022-11-23 02:00:01.844834 |
updated_at | 2022-11-23 02:00:01.844834 |
description | error feedback strings |
homepage | |
repository | https://github.com/svencp/error_feedback.git |
max_upload_size | |
id | 721250 |
size | 6,059 |
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);
}