From 5ad01dfa86424c4b22cd1dfa375f13bd8c656f43 Mon Sep 17 00:00:00 2001 From: ninrod Date: Wed, 3 Apr 2019 22:29:04 -0300 Subject: optionally keep xml attrs: add more tests --- test/evil-surround-test.el | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/test/evil-surround-test.el b/test/evil-surround-test.el index c70f181..1beaae4 100644 --- a/test/evil-surround-test.el +++ b/test/evil-surround-test.el @@ -103,6 +103,16 @@ "Bar" ("cst

") "

Bar

")) + (ert-info ("optionally keep xml attributes: more complicated cases") + (evil-test-buffer + :visual-start nil + :visual-end nil + "
Bar
" + (turn-on-evil-surround-mode) + ("cstBar" + ("cst

") + "

Bar

")) (ert-info ("repeat surrounding") (evil-test-buffer "[o]ne two three" @@ -206,14 +216,14 @@ )) (ert-info ("buffer is widened before reading char") (test-widened-buffer - "`[w]ord`" - ("cs`)") - "[(]word)") + "`[w]ord`" + ("cs`)") + "[(]word)") (test-widened-buffer - "`[w]ord`" - ("ds`") - "[w]ord") + "`[w]ord`" + ("ds`") + "[w]ord") (test-widened-buffer - "[w]ord" - ("ysiwb") - "[(]word)"))) + "[w]ord" + ("ysiwb") + "[(]word)"))) -- cgit v1.0