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
@@ -522,6 +522,7 @@ | ||
522 | 522 | call CheckDefFailure("let x = 33 + 0z1122", 'E1035') |
523 | 523 | call CheckDefFailure("let x = [3] + 0z1122", 'E1035') |
524 | 524 | call CheckDefFailure("let x = 'asdf' + 0z1122", 'E1035') |
525 | + call CheckDefFailure("let x = 6 + xxx", 'E1001') | |
525 | 526 | endfunc |
526 | 527 | |
527 | 528 | " test multiply, divide, modulo |
@@ -553,6 +554,8 @@ | ||
553 | 554 | assert_equal(5.0, xf[0] + yf[0]) |
554 | 555 | assert_equal(6.0, xf[0] * yf[0]) |
555 | 556 | endif |
557 | + | |
558 | + call CheckDefFailure("let x = 6 * xxx", 'E1001') | |
556 | 559 | enddef |
557 | 560 | |
558 | 561 | def Test_expr6_float() |
@@ -680,6 +683,8 @@ | ||
680 | 683 | assert_equal(g:blob_empty, 0z) |
681 | 684 | assert_equal(g:blob_one, 0z01) |
682 | 685 | assert_equal(g:blob_long, 0z0102.0304) |
686 | + | |
687 | + call CheckDefFailure("let x = 0z123", 'E973:') | |
683 | 688 | enddef |
684 | 689 | |
685 | 690 | def Test_expr7_string() |
@@ -691,6 +696,9 @@ | ||
691 | 696 | assert_equal(g:string_long, 'abcdefghijklm') |
692 | 697 | assert_equal(g:string_long, "abcdefghijklm") |
693 | 698 | assert_equal(g:string_special, "ab\ncd\ref\ekk") |
699 | + | |
700 | + call CheckDefFailure('let x = "abc', 'E114:') | |
701 | + call CheckDefFailure("let x = 'abc", 'E115:') | |
694 | 702 | enddef |
695 | 703 | |
696 | 704 | def Test_expr7_special() |
@@ -738,6 +746,7 @@ | ||
738 | 746 | call CheckDefFailure("let x = {'a': xxx}", 'E1001:') |
739 | 747 | call CheckDefFailure("let x = {xxx: 8}", 'E1001:') |
740 | 748 | call CheckDefFailure("let x = #{a: 1, a: 2}", 'E721:') |
749 | + call CheckDefFailure("let x = #", 'E1015:') | |
741 | 750 | call CheckDefFailure("let x += 1", 'E1020:') |
742 | 751 | call CheckDefFailure("let x = x + 1", 'E1001:') |
743 | 752 | call CheckDefExecFailure("let x = g:anint.member", 'E715:') |
@@ -739,6 +739,8 @@ | ||
739 | 739 | static int included_patches[] = |
740 | 740 | { /* Add new patch number below this line */ |
741 | 741 | /**/ |
742 | + 484, | |
743 | +/**/ | |
742 | 744 | 483, |
743 | 745 | /**/ |
744 | 746 | 482, |