2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-02-13 12:43:43 +00:00
fish-shell/tests/count.in

30 lines
424 B
Fish
Raw Normal View History

# Validate the behavior of the `count` command.
logmsg no args
count
logmsg one args
count x
logmsg two args
count x y
logmsg args that look like flags or are otherwise special
count -h
count --help
count --
count -- abc
count def -- abc
2019-02-01 01:58:06 -08:00
logmsg big counts
# See #5611
for i in seq 500
set c1 (count (seq 1 10000))
test $c1 -eq 10000
or begin
echo "Count $c1 is not 10000"
break
end
end