26 lines
370 B
Plaintext
26 lines
370 B
Plaintext
proc setup {} {
|
|
save_env
|
|
}; # setup()
|
|
|
|
|
|
proc teardown {} {
|
|
assert_env_unmodified
|
|
}; # teardown()
|
|
|
|
|
|
setup
|
|
|
|
|
|
set test "_get_cword should run without errors"
|
|
assert_bash_exec {_get_cword > /dev/null} $test
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
# See also ./lib/completions/alias.exp. Here `_get_cword' is actually tested
|
|
# by moving the cursor left into the current word.
|
|
|
|
|
|
teardown
|