1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2015-11-30 21:38:24 +01:00
parent 43345546ae
commit 683fa185a4
9 changed files with 87 additions and 104 deletions

View File

@@ -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