mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
test harness: Fix a bug whereby 'todo' state would propagate to all subsequent test points.
Update expectations on the subshell test (which triggered this bug, since it has a passing test point following a 'todo' test point).
This commit is contained in:
parent
b2ac98b981
commit
11c060ab76
2 changed files with 3 additions and 3 deletions
|
|
@ -91,9 +91,9 @@ run_test() {
|
|||
done
|
||||
|
||||
# Then we compare the observed result with the expected one.
|
||||
local todo
|
||||
echo "1..${#expected_region_highlight}"
|
||||
for i in {1..${#expected_region_highlight}}; do
|
||||
local todo=
|
||||
highlight_zone=${(z)expected_region_highlight[$i]}
|
||||
[[ -n "$highlight_zone[4]" ]] && todo=" # TODO $highlight_zone[4]"
|
||||
for j in {$highlight_zone[1]..$highlight_zone[2]}; do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue