view src/testdir/README.txt @ 7498:3fcd3d235f7b v7.4.1051

commit https://github.com/vim/vim/commit/af8af8bfac5792fa64efbc524032d568cc7754f7 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 4 22:05:24 2016 +0100 patch 7.4.1051 Problem: Segfault when unletting "count". Solution: Check for readonly and locked first. (Dominique Pelle) Add a test.
author Christian Brabandt <cb@256bit.org>
date Mon, 04 Jan 2016 22:15:06 +0100
parents dbfa0f9ab289
children 9d67399f49c6
line wrap: on
line source

This directory contains tests for various Vim features.

If it makes sense, try to add a new test to an already existing file.  You may
want to separate it from other tests in that file using :" (that's an Ex
command comment).

The numbered tests are older, we have switched to named tests.
And the newest way of testing is to use assert functions, see test_assert.vim
for an example.

To add a new test:
1) Create test_<subject>.in and test_<subject>.ok files.
2) Add them to all Makefiles (Make*) in alphabetical order (search for an
   existing test_file.out to see where to add the new one).
3) Use make test_<subject>.out to run a single test file in src/testdir/.
4) Also add an entry in src/Makefile.

Keep in mind that the files are used as if everything was typed.
A line break is like pressing Enter.  If that happens on the last line you'll
hear a beep.