summaryrefslogtreecommitdiffstats
path: root/test/t/unit/test_unit_variables.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/t/unit/test_unit_variables.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/t/unit/test_unit_variables.py b/test/t/unit/test_unit_variables.py
index d62bc4a..f15d249 100644
--- a/test/t/unit/test_unit_variables.py
+++ b/test/t/unit/test_unit_variables.py
@@ -11,7 +11,7 @@ class TestUnitVariables:
assert_bash_exec(
bash, "unset assoc2 && declare -A assoc2=([idx1]=1 [idx2]=2)"
)
- assert_bash_exec(bash, "unset ${!___v*} && declare ___var=''")
+ assert_bash_exec(bash, 'unset ${!___v*} && declare ___var=""')
request.addfinalizer(
lambda: assert_bash_exec(bash, "unset ___var assoc1 assoc2")
)
@@ -28,6 +28,10 @@ class TestUnitVariables:
def test_multiple_array_indexes(self, functions, completion):
assert completion == "${assoc2[idx1]} ${assoc2[idx2]}".split()
+ @pytest.mark.complete(": ${assoc2[", shopt=dict(failglob=True))
+ def test_multiple_array_indexes_failglob(self, functions, completion):
+ assert completion == "${assoc2[idx1]} ${assoc2[idx2]}".split()
+
@pytest.mark.complete(": ${assoc1[bogus]")
def test_closing_curly_after_square(self, functions, completion):
assert completion == "}"