You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
343 B

  1. #!/usr/bin/env zunit
  2. @setup {
  3. load "../fast-highlight"
  4. }
  5. @test 'ls /usr/bin' {
  6. PREBUFFER=""
  7. BUFFER="ls /usr/bin"
  8. run -fast-highlight-process "$PREBUFFER" "$BUFFER" 0 \; print -rl -- \$reply
  9. assert "$lines[1]" same_as "0 2 fg=green"
  10. assert "$lines[2]" same_as "3 11 fg=magenta,underline"
  11. }
  12. # vim:ft=zsh:sw=4:sts=4:et