Explorar el Código

Perf: rename tests related to hashed commands

pull/764/head
Roman Perepelitsa hace 4 años
padre
commit
fe98bbac6c
Se han modificado 4 ficheros con 6 adiciones y 6 borrados
  1. +0
    -0
      highlighters/main/test-data/hashed-command-ambiguous.zsh
  2. +0
    -0
      highlighters/main/test-data/hashed-command-relative.zsh
  3. +4
    -4
      highlighters/main/test-data/hashed-command-valid.zsh
  4. +2
    -2
      highlighters/main/test-data/hashed-command.zsh

highlighters/main/test-data/ambiguous-hashed-command.zsh → highlighters/main/test-data/hashed-command-ambiguous.zsh Ver fichero


highlighters/main/test-data/relative-hashed-command.zsh → highlighters/main/test-data/hashed-command-relative.zsh Ver fichero


highlighters/main/test-data/invalid-hashed-command.zsh → highlighters/main/test-data/hashed-command-valid.zsh Ver fichero

@ -1,5 +1,5 @@
# -------------------------------------------------------------------------------------------------
# Copyright (c) 2020 zsh-syntax-highlighting contributors
# Copyright (c) 2015 zsh-syntax-highlighting contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted
@ -27,9 +27,9 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
hash zsyh-hashed-command=/doesnotexist
BUFFER='zsyh-hashed-command'
hash zsh_syntax_highlighting_hash=/usr/bin/env
BUFFER='zsh_syntax_highlighting_hash'
expected_region_highlight=(
"1 19 unknown-token"
"1 28 hashed-command"
)

+ 2
- 2
highlighters/main/test-data/hashed-command.zsh Ver fichero

@ -27,9 +27,9 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
hash zsh_syntax_highlighting_hash=/usr/bin/env
hash zsh_syntax_highlighting_hash=/doesnotexist
BUFFER='zsh_syntax_highlighting_hash'
expected_region_highlight=(
"1 28 hashed-command"
"1 28 unknown-token"
)

Cargando…
Cancelar
Guardar