mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 08:56:29 +00:00
tests: Migrate legacy test assert.
This commit is contained in:
@@ -31,8 +31,7 @@ SCRIPTS := test_eval.out \
|
||||
test_command_count.out \
|
||||
test_cdo.out \
|
||||
|
||||
NEW_TESTS = test_assert.res \
|
||||
test_undolevels.res
|
||||
NEW_TESTS = test_undolevels.res
|
||||
|
||||
SCRIPTS_GUI := test16.out
|
||||
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
" Test that the methods used for testing work.
|
||||
|
||||
func Test_assert_false()
|
||||
call assert_false(0)
|
||||
endfunc
|
||||
|
||||
func Test_assert_true()
|
||||
call assert_true(1)
|
||||
call assert_true(123)
|
||||
endfunc
|
||||
|
||||
func Test_assert_equal()
|
||||
let s = 'foo'
|
||||
call assert_equal('foo', s)
|
||||
let n = 4
|
||||
call assert_equal(4, n)
|
||||
let l = [1, 2, 3]
|
||||
call assert_equal([1, 2, 3], l)
|
||||
endfunc
|
||||
Reference in New Issue
Block a user