Closed mietek closed 9 years ago
Currently, expect_vars (and has_vars) requires vars to be non-empty, but expect_args does not. This should be consistent.
expect_vars
has_vars
expect_args
Either change expect_vars and add separate non-empty checks, or ensure we never use empty args and change expect_args.
The behaviour of each function is now documented as part of the bashmenot library reference.
“A foolish consistency is the hobgoblin of little minds.” — Ralph Waldo Emerson
Currently,
expect_vars
(andhas_vars
) requires vars to be non-empty, butexpect_args
does not. This should be consistent.Either change
expect_vars
and add separate non-empty checks, or ensure we never use empty args and changeexpect_args
.