mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2026-03-04 13:25:00 +08: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user