Patch 8.2.0484
Problem:    Vim9: some error messages not tested.
Solution:   Add more tests.
Files:      src/testdir/test_vim9_expr.vim


*** ../vim-8.2.0483/src/testdir/test_vim9_expr.vim      2020-03-30 
21:05:41.446604275 +0200
--- src/testdir/test_vim9_expr.vim      2020-03-30 21:20:31.695066381 +0200
***************
*** 522,527 ****
--- 522,528 ----
    call CheckDefFailure("let x = 33 + 0z1122", 'E1035')
    call CheckDefFailure("let x = [3] + 0z1122", 'E1035')
    call CheckDefFailure("let x = 'asdf' + 0z1122", 'E1035')
+   call CheckDefFailure("let x = 6 + xxx", 'E1001')
  endfunc
  
  " test multiply, divide, modulo
***************
*** 553,558 ****
--- 554,561 ----
      assert_equal(5.0, xf[0] + yf[0])
      assert_equal(6.0, xf[0] * yf[0])
    endif
+ 
+   call CheckDefFailure("let x = 6 * xxx", 'E1001')
  enddef
  
  def Test_expr6_float()
***************
*** 680,685 ****
--- 683,690 ----
    assert_equal(g:blob_empty, 0z)
    assert_equal(g:blob_one, 0z01)
    assert_equal(g:blob_long, 0z0102.0304)
+ 
+   call CheckDefFailure("let x = 0z123", 'E973:')
  enddef
  
  def Test_expr7_string()
***************
*** 691,696 ****
--- 696,704 ----
    assert_equal(g:string_long, 'abcdefghijklm')
    assert_equal(g:string_long, "abcdefghijklm")
    assert_equal(g:string_special, "ab\ncd\ref\ekk")
+ 
+   call CheckDefFailure('let x = "abc', 'E114:')
+   call CheckDefFailure("let x = 'abc", 'E115:')
  enddef
  
  def Test_expr7_special()
***************
*** 738,743 ****
--- 746,752 ----
    call CheckDefFailure("let x = {'a': xxx}", 'E1001:')
    call CheckDefFailure("let x = {xxx: 8}", 'E1001:')
    call CheckDefFailure("let x = #{a: 1, a: 2}", 'E721:')
+   call CheckDefFailure("let x = #", 'E1015:')
    call CheckDefFailure("let x += 1", 'E1020:')
    call CheckDefFailure("let x = x + 1", 'E1001:')
    call CheckDefExecFailure("let x = g:anint.member", 'E715:')
*** ../vim-8.2.0483/src/version.c       2020-03-30 21:05:41.446604275 +0200
--- src/version.c       2020-03-30 21:22:28.662631133 +0200
***************
*** 740,741 ****
--- 740,743 ----
  {   /* Add new patch number below this line */
+ /**/
+     484,
  /**/

-- 
TALL KNIGHT: When you have found the shrubbery, then you must cut down the
             mightiest tree in the forest ... with a herring.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202003301923.02UJNP6l026954%40masaka.moolenaar.net.

Raspunde prin e-mail lui