tests/main.zunit

This commit is contained in:
Sebastian Gniazdowski 2019-07-18 05:34:23 +02:00
parent c906d2dfdb
commit aa1d87f174

15
tests/main.zunit Normal file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env zunit
@setup {
load "../fast-highlight"
}
@test 'ls /usr/bin' {
PREBUFFER=""
BUFFER="ls /usr/bin"
evl -fast-highlight-process "$PREBUFFER" "$BUFFER" 0
assert "$reply[1]" same_as "0 2 fg=green"
assert "$reply[2]" same_as "3 11 fg=magenta,underline"
}
# vim:ft=zsh:sw=4:sts=4:et