emacs-evil / evil-surround

you will be surrounded (surround.vim for evil, the extensible vi layer)
Other
627 stars 60 forks source link

Add examples from readme as automated tests #120

Closed edkolev closed 7 years ago

edkolev commented 7 years ago

This PR adds the the Examples from the readme as unit tests, all but the last one. I couldn't get the last one working. Here's what I tried in case someone wants to pick it up.

(evil-test-buffer
      :visual-start nil
      :visual-start nil
      "<em>Hello</em> world!"
      ("VS<p class=\"important\">")
      "<p class=\"important\">\n<em>Hello</em> world!\n</p>")

The issue has something to do with evil-test-buffer using < and > as visual selection.

Still, even without the last one, I think this is a good addition to the test suite.

ninrod commented 7 years ago

thanks @edkolev!