summaryrefslogtreecommitdiffstats
path: root/src/testdir/README.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-06-04 20:25:05 +0200
committerBram Moolenaar <Bram@vim.org>2016-06-04 20:25:05 +0200
commitfd89d7ea81b18d32363456b16258174dc9e095dc (patch)
treede3d13a1c6152022c2ab579dd4aa74cadc423dd0 /src/testdir/README.txt
parent82af8710bf8d1caeeceafb1370a052cb7d92f076 (diff)
patch 7.4.1897v7.4.1897
Problem: Various typos, long lines and style mistakes. Solution: Fix the typos, wrap lines, improve style.
Diffstat (limited to 'src/testdir/README.txt')
-rw-r--r--src/testdir/README.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testdir/README.txt b/src/testdir/README.txt
index 052ccf5a2a..534f05fd53 100644
--- a/src/testdir/README.txt
+++ b/src/testdir/README.txt
@@ -5,7 +5,7 @@ want to separate it from other tests with comment lines.
The numbered tests are older, we have switched to named tests.
-And then you can chose between a new style test, which is a Vim script, or an
+And then you can choose between a new style test, which is a Vim script, or an
old style test, which uses Normal mode commands. Use a new style test if you
can.
@@ -21,13 +21,14 @@ TO ADD A NEW STYLE TEST:
What you can use (see test_assert.vim for an example):
- Call assert_equal(), assert_true() and assert_false().
- Use try/catch to check for exceptions.
-- Use alloc_fail() to have memory allocation fail. This makes it possible to
+- Use alloc_fail() to have memory allocation fail. This makes it possible
to check memory allocation failures are handled gracefully. You need to
change the source code to add an ID to the allocation. Update LAST_ID_USED
above alloc_id() to the highest ID used.
- Use disable_char_avail_for_testing(1) if char_avail() must return FALSE for
a while. E.g. to trigger the CursorMovedI autocommand event.
See test_cursor_func.vim for an example
+- See the start of runtest.vim for more help.
TO ADD AN OLD STYLE TEST: