From df8b2fb867f3b91800a752bc572aee2197cdfac3 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 18 Oct 2018 23:48:17 +0000 Subject: [PATCH] tests: Fix a failing test. Update the test point for f3410c5862fc6d89ee3661f7d140e570d6740e8c (#264), which changed the highlighting of aliases to consider what they resolve to. Now the test file has both ${aliases[alias1]} and ${functions[alias1]}, the expectation is 'alias', and passes; thus: Fixes #588. --- highlighters/main/test-data/alias.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/highlighters/main/test-data/alias.zsh b/highlighters/main/test-data/alias.zsh index 9a45367..9699f0b 100644 --- a/highlighters/main/test-data/alias.zsh +++ b/highlighters/main/test-data/alias.zsh @@ -27,7 +27,7 @@ # vim: ft=zsh sw=2 ts=2 et # ------------------------------------------------------------------------------------------------- -alias alias1="unused expansion" +alias alias1="ls" alias -s alias2="echo" function alias1() {} # to check that it's highlighted as an alias, not as a function @@ -47,5 +47,5 @@ if zmodload -e zsh/parameter || [[ "$(type -w x.alias2)" == *suffix* ]]; then fi expected_region_highlight+=( "9 9 commandseparator" # ; - "11 16 alias 'issue #558'" # alias1 + "11 16 alias" # alias1 )