I wrote:
> Patch 8.1.0496 > Problem: No tests for indent files. > Solution: Add a mechanism for running indent file tests. Add a first test > for Vim indenting. > Files: runtime/indent/Makefile, runtime/indent/testdir/runtest.vim, > runtime/indent/testdir/cleantest.vim, runtime/indent/README.txt, > runtime/indent/testdir/README.txt, runtime/indent/testdir/vim.in, > runtime/indent/testdir/vim.ok, Filelist This patch makes it possible to write tests for indent files. I included a short example for Vim indenting. If you maintain an indent file, please check it out. Let me know if you would like to improve this somehow. I would expect some indent file maintainers to already have their own tests, that doesn't really change. Adding the tests to the distribution makes it easier for others to suggest improvements to the indent script, and run the tests to check there are no regressions. Adding the tests in the runtime directory makes it easier to keep them in sync with the indent scripts. Putting them under src/testdir would make that more difficult. And end users probably don't have src/testdir. It does make the runtime directory a bit bigger, but I don't think it is much and it's worth it. -- Women are probably the main cause of free software starvation. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
