From 7e72e9ac87fc1c052726202f84a1e16466e06ad4 Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Wed, 2 Aug 2023 22:22:54 -0400 Subject: feat: `zsh` fast-syntax-highlighting plugin --- .../zsh-fast-syntax-highlighting/tests/example.zunit | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .config/shell/zsh-fast-syntax-highlighting/tests/example.zunit (limited to '.config/shell/zsh-fast-syntax-highlighting/tests/example.zunit') 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 -- cgit v1.2.3