Explorar el Código

test harness: Honour $expected_mismatch when there are more expected than observed highlights.

Required for the next commit.
pull/689/head
Daniel Shahaf hace 4 años
padre
commit
027f522300
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      tests/test-highlighting.zsh

+ 2
- 1
tests/test-highlighting.zsh Ver fichero

@ -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]} )

Cargando…
Cancelar
Guardar