Allright, that looks fine. I think some basic tests like that would be great to have. I try to catch everything in my tests, but that might not be necessary. Take a look at the tests I have written and migrate the ones you seem useful.


On Sun, Aug 11, 2013 at 4:29 PM, Dmitry Gutov <dgutov@yandex.ru> wrote:
On 11.08.2013 17:08, Johan Andersson wrote:
It's a shame that packages included in Emacs cannot use the current test
suite. Specially in this case since the tests are very good.

I don't think there's any idea to write these in Ert since the mode is
interactive and it would require a lot of mocking and stuff.

I don't think it would be that hard. For example, see `ruby-toggle-block-to-brace' and other tests, here:

http://bzr.savannah.gnu.org/lh/emacs/trunk/annotate/head:/test/automated/ruby-mode-tests.el#L288

Sure, they don't test keybindings, but I'd say it's not the most important part.