Remove padding from table and add test
This commit is contained in:
@@ -9,3 +9,13 @@ use crate::common::util::TestScenario;
|
||||
fn test_invalid_arg() {
|
||||
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_table_not_padded() {
|
||||
let result = new_ucmd!().succeeds();
|
||||
let stdout = result.code_is(0).stdout_str();
|
||||
assert!(
|
||||
!stdout.starts_with(' '),
|
||||
"Table output should not start with a space"
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user