diff --git a/tests/count.err b/tests/count.err index e69de29bb..a4d49599c 100644 --- a/tests/count.err +++ b/tests/count.err @@ -0,0 +1,12 @@ + +#################### +# no args + +#################### +# one args + +#################### +# two args + +#################### +# args that look like flags or are otherwise special diff --git a/tests/count.in b/tests/count.in index 683c54a69..ede959942 100644 --- a/tests/count.in +++ b/tests/count.in @@ -1,15 +1,15 @@ # Validate the behavior of the `count` command. -echo '# no args' +logmsg no args count -echo '# one args' +logmsg one args count x -echo '# two args' +logmsg two args count x y -echo '# args that look like flags or are otherwise special' +logmsg args that look like flags or are otherwise special count -h count --help count -- diff --git a/tests/count.out b/tests/count.out index ca42bee04..a81214195 100644 --- a/tests/count.out +++ b/tests/count.out @@ -1,9 +1,17 @@ + +#################### # no args 0 + +#################### # one args 1 + +#################### # two args 2 + +#################### # args that look like flags or are otherwise special 1 1