diff options
| author | Blista Kanjo | 2023-08-02 22:22:54 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2023-08-02 22:22:54 -0400 |
| commit | 7e72e9ac87fc1c052726202f84a1e16466e06ad4 (patch) | |
| tree | eb35478ad142aa154d80d85aa583500c5eab65b8 /.config/shell/zsh-fast-syntax-highlighting/tests/example.zunit | |
| parent | 08e564a8e1d4c13ad4c046ca4bfc9ca7f72373bd (diff) | |
feat: `zsh` fast-syntax-highlighting plugin
Diffstat (limited to '.config/shell/zsh-fast-syntax-highlighting/tests/example.zunit')
| -rw-r--r-- | .config/shell/zsh-fast-syntax-highlighting/tests/example.zunit | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/shell/zsh-fast-syntax-highlighting/tests/example.zunit b/.config/shell/zsh-fast-syntax-highlighting/tests/example.zunit new file mode 100644 index 0000000..910f840 --- /dev/null +++ b/.config/shell/zsh-fast-syntax-highlighting/tests/example.zunit @@ -0,0 +1,15 @@ +#!/usr/bin/env zunit +@setup { + load "../fast-highlight" +} + +@test 'ls /usr/bin' { + PREBUFFER="" + BUFFER="ls /usr/bin" + run -fast-highlight-process "$PREBUFFER" "$BUFFER" 0 \; print -rl -- \$reply + + assert "$lines[1]" same_as "0 2 fg=green" + assert "$lines[2]" same_as "3 11 fg=magenta,underline" +} + +# vim:ft=zsh:sw=4:sts=4:et |
