diff options
Diffstat (limited to 'src/testdir/test_float_func.vim')
-rw-r--r-- | src/testdir/test_float_func.vim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/testdir/test_float_func.vim b/src/testdir/test_float_func.vim index b10bffd728..ba15ecfc7f 100644 --- a/src/testdir/test_float_func.vim +++ b/src/testdir/test_float_func.vim @@ -240,8 +240,7 @@ func Test_str2float() call assert_equal('nan', string(str2float(' nan '))) call assert_equal(1.2, str2float(1.2)) - call CheckDefExecFailure(['str2float(1.2)'], 'E1013:') - call CheckScriptFailure(['vim9script', 'str2float(1.2)'], 'E806:') + call CheckDefAndScriptFailure2(['str2float(1.2)'], 'E1013: Argument 1: type mismatch, expected string but got float', 'E1174: String required for argument 1') call assert_fails("call str2float([])", 'E730:') call assert_fails("call str2float({})", 'E731:') call assert_fails("call str2float(function('string'))", 'E729:') |