• R/O
  • SSH

vim: コミット

Mirror of the Vim source from https://github.com/vim/vim


コミットメタ情報

リビジョン90eec641cc8ce8aab86c06cb882c0bb48299674e (tree)
日時2020-03-31 04:30:04
作者Bram Moolenaar <Bram@vim....>
コミッターBram Moolenaar

ログメッセージ

patch 8.2.0484: Vim9: some error messages not tested

Commit: https://github.com/vim/vim/commit/92dba36fc8742fdb51b16d9bb967ef184b4babc1
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 30 21:22:56 2020 +0200

patch 8.2.0484: Vim9: some error messages not tested
Problem: Vim9: some error messages not tested.
Solution: Add more tests.

変更サマリ

差分

diff -r 520dedb83f15 -r 90eec641cc8c src/testdir/test_vim9_expr.vim
--- a/src/testdir/test_vim9_expr.vim Mon Mar 30 21:15:04 2020 +0200
+++ b/src/testdir/test_vim9_expr.vim Mon Mar 30 21:30:04 2020 +0200
@@ -522,6 +522,7 @@
522522 call CheckDefFailure("let x = 33 + 0z1122", 'E1035')
523523 call CheckDefFailure("let x = [3] + 0z1122", 'E1035')
524524 call CheckDefFailure("let x = 'asdf' + 0z1122", 'E1035')
525+ call CheckDefFailure("let x = 6 + xxx", 'E1001')
525526 endfunc
526527
527528 " test multiply, divide, modulo
@@ -553,6 +554,8 @@
553554 assert_equal(5.0, xf[0] + yf[0])
554555 assert_equal(6.0, xf[0] * yf[0])
555556 endif
557+
558+ call CheckDefFailure("let x = 6 * xxx", 'E1001')
556559 enddef
557560
558561 def Test_expr6_float()
@@ -680,6 +683,8 @@
680683 assert_equal(g:blob_empty, 0z)
681684 assert_equal(g:blob_one, 0z01)
682685 assert_equal(g:blob_long, 0z0102.0304)
686+
687+ call CheckDefFailure("let x = 0z123", 'E973:')
683688 enddef
684689
685690 def Test_expr7_string()
@@ -691,6 +696,9 @@
691696 assert_equal(g:string_long, 'abcdefghijklm')
692697 assert_equal(g:string_long, "abcdefghijklm")
693698 assert_equal(g:string_special, "ab\ncd\ref\ekk")
699+
700+ call CheckDefFailure('let x = "abc', 'E114:')
701+ call CheckDefFailure("let x = 'abc", 'E115:')
694702 enddef
695703
696704 def Test_expr7_special()
@@ -738,6 +746,7 @@
738746 call CheckDefFailure("let x = {'a': xxx}", 'E1001:')
739747 call CheckDefFailure("let x = {xxx: 8}", 'E1001:')
740748 call CheckDefFailure("let x = #{a: 1, a: 2}", 'E721:')
749+ call CheckDefFailure("let x = #", 'E1015:')
741750 call CheckDefFailure("let x += 1", 'E1020:')
742751 call CheckDefFailure("let x = x + 1", 'E1001:')
743752 call CheckDefExecFailure("let x = g:anint.member", 'E715:')
diff -r 520dedb83f15 -r 90eec641cc8c src/version.c
--- a/src/version.c Mon Mar 30 21:15:04 2020 +0200
+++ b/src/version.c Mon Mar 30 21:30:04 2020 +0200
@@ -739,6 +739,8 @@
739739 static int included_patches[] =
740740 { /* Add new patch number below this line */
741741 /**/
742+ 484,
743+/**/
742744 483,
743745 /**/
744746 482,
旧リポジトリブラウザで表示