summaryrefslogtreecommitdiff
path: root/src/testdir/test_assert.vim
blob: 049ce988593fce1a71ad042798ab51e58d9759ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
" 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