mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01: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
1 changed files with 2 additions and 1 deletions
|
|
@ -155,7 +155,8 @@ run_test_internal() {
|
||||||
local todo=
|
local todo=
|
||||||
(( $+expected_highlight_zone[4] )) && todo="# TODO $expected_highlight_zone[4]"
|
(( $+expected_highlight_zone[4] )) && todo="# TODO $expected_highlight_zone[4]"
|
||||||
if ! (( $+region_highlight[i] )); then
|
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
|
continue
|
||||||
fi
|
fi
|
||||||
local -a highlight_zone; highlight_zone=( ${(z)region_highlight[i]} )
|
local -a highlight_zone; highlight_zone=( ${(z)region_highlight[i]} )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue