mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Adding tests for ls. Corrected issue with ls on the present directory throwing panic!()
This commit is contained in:
parent
825a850fa9
commit
0bb0c40c36
4 changed files with 38 additions and 2 deletions
16
tests/ls.rs
Normal file
16
tests/ls.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
#[macro_use]
|
||||
mod common;
|
||||
|
||||
use common::util::*;
|
||||
|
||||
static UTIL_NAME: &'static str = "ls";
|
||||
|
||||
#[test]
|
||||
fn test_ls_ls() {
|
||||
let (at, mut ucmd) = testing(UTIL_NAME);
|
||||
|
||||
let result = ucmd.run();
|
||||
|
||||
let exit_success = result.success;
|
||||
assert_eq!(exit_success, true);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue