瀏覽代碼

tests: Use idiomatic set check

pull/451/head
Matthew Martin 6 年之前
父節點
當前提交
a33c72e838
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      tests/test-highlighting.zsh

+ 1
- 1
tests/test-highlighting.zsh 查看文件

@ -137,7 +137,7 @@ run_test_internal() {
local desc="[$start,$end] «${BUFFER[$start,$end]//'#'/♯}»"
# Match the emptiness of observed_result if no highlighting is expected
[[ $highlight_zone[3] == NONE ]] && highlight_zone[3]=
[[ -n "$highlight_zone[4]" ]] && todo="# TODO $highlight_zone[4]"
(( $+highlight_zone[4] )) && todo="# TODO $highlight_zone[4]"
for j in {$start..$end}; do
if [[ "$observed_result[$j]" != "$highlight_zone[3]" ]]; then
print -r -- "not ok $i - $desc - expected ${(qqq)highlight_zone[3]}, observed ${(qqq)observed_result[$j]}. $todo"

Loading…
取消
儲存