mirror of
https://github.com/zsh-users/zsh-syntax-highlighting
synced 2024-09-20 16:39:05 +02:00
test harness: Honour $expected_mismatch when there are more expected than observed highlights.
Required for the next commit.
This commit is contained in:
parent
619fcad067
commit
027f522300
|
@ -155,7 +155,8 @@ run_test_internal() {
|
|||
local todo=
|
||||
(( $+expected_highlight_zone[4] )) && todo="# TODO $expected_highlight_zone[4]"
|
||||
if ! (( $+region_highlight[i] )); then
|
||||
print -r -- "not ok $i - unmatched expectation ($exp_start $exp_end $expected_highlight_zone[3])"
|
||||
print -r -- "not ok $i - unmatched expectation ($exp_start $exp_end $expected_highlight_zone[3])" \
|
||||
"${expected_mismatch:+"# TODO ${(qqq)expected_mismatch}"}"
|
||||
continue
|
||||
fi
|
||||
local -a highlight_zone; highlight_zone=( ${(z)region_highlight[i]} )
|
||||
|
|
Loading…
Reference in a new issue