Browse Source

minor: tests: Quote $BUFFER differently on output.

The new output improves readability of the 'main' highlighter's test output.
pull/309/head
Daniel Shahaf 8 years ago
parent
commit
3176b9567c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tests/test-highlighting.zsh

+ 1
- 1
tests/test-highlighting.zsh View File

@ -109,7 +109,7 @@ run_test_internal() {
local todo= local todo=
integer start=$highlight_zone[1] end=$highlight_zone[2] integer start=$highlight_zone[1] end=$highlight_zone[2]
# Escape # as ♯ since the former is illegal in the 'description' part of TAP output # Escape # as ♯ since the former is illegal in the 'description' part of TAP output
local desc="[$start,$end] ${(qqq)BUFFER[$start,$end]//'#'/♯}"
local desc="[$start,$end] «${BUFFER[$start,$end]//'#'/♯}»"
[[ $highlight_zone[3] == NONE ]] && highlight_zone[3]= [[ $highlight_zone[3] == NONE ]] && highlight_zone[3]=
[[ -n "$highlight_zone[4]" ]] && todo=" # TODO $highlight_zone[4]" [[ -n "$highlight_zone[4]" ]] && todo=" # TODO $highlight_zone[4]"
for j in {$start..$end}; do for j in {$start..$end}; do

Loading…
Cancel
Save