diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-26 15:59:55 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-26 15:59:55 +0200 |
commit | 99fa721944dda9d07c53c907c33466728df5c271 (patch) | |
tree | 7ead4c06b56e21eb208ea1b9673cd463ba13f3c0 /src/testdir/test_reltime.vim | |
parent | e297802d6ddbebbf36f9a2d01127c034fab88b3b (diff) | |
download | vim-git-99fa721944dda9d07c53c907c33466728df5c271.tar.gz |
patch 8.2.0644: insufficient testing for invalid function argumentsv8.2.0644
Problem: Insufficient testing for invalid function arguments.
Solution: Add more tests. (Yegappan Lakshmanan, closes #5988)
Diffstat (limited to 'src/testdir/test_reltime.vim')
-rw-r--r-- | src/testdir/test_reltime.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_reltime.vim b/src/testdir/test_reltime.vim index e25c3cede..f4ce5de11 100644 --- a/src/testdir/test_reltime.vim +++ b/src/testdir/test_reltime.vim @@ -23,4 +23,9 @@ func Test_reltime() call assert_true(reltimestr(differs) != '0.0') call assert_true(reltimefloat(differs) < 0.1) call assert_true(reltimefloat(differs) > 0.0) + + call assert_equal(0, reltime({})) + call assert_equal(0, reltime({}, {})) endfunc + +" vim: shiftwidth=2 sts=2 expandtab |