diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-02 17:36:54 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-02 17:36:54 +0100 |
commit | e0de171ecd2ff7acd56deda2cf81f0d13a69c803 (patch) | |
tree | 87667e0ae5a5517461d7f4e59514d9495170a05a /src/testdir/test_vim9_cmd.vim | |
parent | 7f76494aac512b1d603d9be4132184241f43872c (diff) |
patch 8.2.2082: Vim9: can still use the depricated #{} dict syntaxv8.2.2082
Problem: Vim9: can still use the depricated #{} dict syntax.
Solution: Remove support for #{} in Vim9 script. (closes #7406, closes #7405)
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index d0f9872caa..162d79508d 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -251,18 +251,18 @@ def Test_skipped_expr_linebreak() enddef def Test_dict_member() - var test: dict<list<number>> = {'data': [3, 1, 2]} + var test: dict<list<number>> = {data: [3, 1, 2]} test.data->sort() - assert_equal(#{data: [1, 2, 3]}, test) + assert_equal({data: [1, 2, 3]}, test) test.data ->reverse() - assert_equal(#{data: [3, 2, 1]}, test) + assert_equal({data: [3, 2, 1]}, test) var lines =<< trim END vim9script - var test: dict<list<number>> = {'data': [3, 1, 2]} + var test: dict<list<number>> = {data: [3, 1, 2]} test.data->sort() - assert_equal(#{data: [1, 2, 3]}, test) + assert_equal({data: [1, 2, 3]}, test) END CheckScriptSuccess(lines) enddef @@ -308,9 +308,9 @@ def Test_bar_after_command() enddef def Test_filter_is_not_modifier() - var tags = [{'a': 1, 'b': 2}, {'x': 3, 'y': 4}] + var tags = [{a: 1, b: 2}, {x: 3, y: 4}] filter(tags, { _, v -> has_key(v, 'x') ? 1 : 0 }) - assert_equal([#{x: 3, y: 4}], tags) + assert_equal([{x: 3, y: 4}], tags) enddef def Test_command_modifier_filter() |