tests: Migrate legacy test assert.

This commit is contained in:
watiko
2015-12-17 17:22:19 +09:00
parent 6c8e572d09
commit d8e07deff6
3 changed files with 154 additions and 21 deletions

View File

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

View File

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