patch 7.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.
diff --git a/src/testdir/test_assert.vim b/src/testdir/test_assert.vim
index 61c77c5..049ce98 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