diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-11-30 21:38:24 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-11-30 21:38:24 +0100 |
commit | 683fa185a4b4ed7595e5942901548b8239ed5cdb (patch) | |
tree | 72dc382b7d35b2efe9cc966a3049f8a61d462559 /src/testdir/test_assert.vim | |
parent | 43345546ae63710441f066648b8485fb545b3801 (diff) |
patch 7.4.945v7.4.945
Problem: New style testing is incomplete.
Solution: Add the runtest script to the list of distributed files.
Add the new functions to the function overview.
Rename the functions to match Vim function style.
Move undolevels testing into a new style test script.
Diffstat (limited to 'src/testdir/test_assert.vim')
-rw-r--r-- | src/testdir/test_assert.vim | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/testdir/test_assert.vim b/src/testdir/test_assert.vim index 61c77c5757..049ce98859 100644 --- a/src/testdir/test_assert.vim +++ b/src/testdir/test_assert.vim @@ -1,19 +1,19 @@ " Test that the methods used for testing work. -func Test_assertFalse() - call assertFalse(0) +func Test_assert_false() + call assert_false(0) endfunc -func Test_assertTrue() - call assertTrue(1) - call assertTrue(123) +func Test_assert_true() + call assert_true(1) + call assert_true(123) endfunc -func Test_assertEqual() +func Test_assert_equal() let s = 'foo' - call assertEqual('foo', s) + call assert_equal('foo', s) let n = 4 - call assertEqual(4, n) + call assert_equal(4, n) let l = [1, 2, 3] - call assertEqual([1, 2, 3], l) + call assert_equal([1, 2, 3], l) endfunc |