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

Do not allow seq to run with an increment of zero

This commit is contained in:
James Robson 2021-02-18 21:10:53 +00:00
parent 39d62c6c1f
commit 0dbed0fd59
2 changed files with 10 additions and 0 deletions

View file

@ -40,3 +40,9 @@ fn test_equalize_widths() {
fn test_seq_wrong_arg() {
new_ucmd!().args(&["-w", "5", "10", "33", "32"]).fails();
}
#[test]
fn test_zero_step() {
new_ucmd!().args(&["10", "0", "32"]).fails();
}