Skip to content

Commit 9bdeb4a

Browse files
committed
test harness: Remove a bogus check.
We already declare $expected_region_highlight in run_test_internal(). Therefore, it will always be declared.
1 parent 63852df commit 9bdeb4a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/test-highlighting.zsh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ run_test_internal() {
135135

136136
# Check the data declares $PREBUFFER or $BUFFER.
137137
[[ -z $PREBUFFER && -z $BUFFER ]] && { echo >&2 "Bail out! On ${(qq)1}: Either 'PREBUFFER' or 'BUFFER' must be declared and non-blank"; return ${RETURN:=1}; }
138-
# Check the data declares $expected_region_highlight.
139-
(( $+expected_region_highlight == 0 )) && { echo >&2 "Bail out! On ${(qq)1}: 'expected_region_highlight' is not declared."; return ${RETURN:=1}; }
140138

141139
# Set sane defaults for ZLE variables
142140
: ${CURSOR=$#BUFFER} ${PENDING=0} ${WIDGET=z-sy-h-test-harness-test-widget}

0 commit comments

Comments
 (0)