diff --git a/test/unit/_count_args.exp b/test/unit/_count_args.exp index fa5417eb..da61bdb6 100644 --- a/test/unit/_count_args.exp +++ b/test/unit/_count_args.exp @@ -6,10 +6,11 @@ proc setup {} { proc teardown {} { assert_bash_exec {unset args COMP_CWORD COMP_LINE COMP_POINT COMP_WORDS} + # Delete 'COMP_WORDBREAKS' occupying two lines assert_env_unmodified { - # Delete 'COMP_WORDBREAKS' occupying two lines /COMP_WORDBREAKS=/{N - d} + d + } } }; # teardown() diff --git a/test/unit/_get_cword.exp b/test/unit/_get_cword.exp index 25e0e8d5..1e6e9bfb 100644 --- a/test/unit/_get_cword.exp +++ b/test/unit/_get_cword.exp @@ -6,10 +6,11 @@ proc setup {} { proc teardown {} { assert_bash_exec {unset COMP_CWORD COMP_LINE COMP_POINT COMP_WORDS} + # Delete 'COMP_WORDBREAKS' occupying two lines assert_env_unmodified { - # Delete 'COMP_WORDBREAKS' occupying two lines /COMP_WORDBREAKS=/{N - d} + d + } } }; # teardown()