1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

tests/pathchk: test empty path

This commit is contained in:
Zhuoxun Yang 2023-10-18 22:50:54 +08:00
parent 1ab8555a94
commit f63f9a06f6

View file

@ -19,8 +19,10 @@ fn test_default_mode() {
// accept non-portable chars // accept non-portable chars
new_ucmd!().args(&["dir#/$file"]).succeeds().no_stdout(); new_ucmd!().args(&["dir#/$file"]).succeeds().no_stdout();
// accept empty path // fail on empty path
new_ucmd!().args(&[""]).succeeds().no_stdout(); new_ucmd!().args(&[""]).fails().no_stdout();
new_ucmd!().args(&["", ""]).fails().no_stdout();
// fail on long path // fail on long path
new_ucmd!() new_ucmd!()