Mercurial > vim
comparison src/testdir/test_vim9_expr.vim @ 20005:49d692e015cc v8.2.0558
patch 8.2.0558: Vim9: dict code not covered by tests
Commit: https://github.com/vim/vim/commit/82de464f763d6e6d89229be03ce7c6d02fd5fb59
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 12 18:02:06 2020 +0200
patch 8.2.0558: Vim9: dict code not covered by tests
Problem: Vim9: dict code not covered by tests.
Solution: Remove dead code, adjust test case.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 12 Apr 2020 18:15:03 +0200 |
parents | 844c7646f61b |
children | bf377a9ffccb |
comparison
equal
deleted
inserted
replaced
20004:73f17fbdc187 | 20005:49d692e015cc |
---|---|
765 let val = 1 | 765 let val = 1 |
766 assert_equal(g:dict_one, {key: val}) | 766 assert_equal(g:dict_one, {key: val}) |
767 | 767 |
768 call CheckDefFailure("let x = #{8: 8}", 'E1014:') | 768 call CheckDefFailure("let x = #{8: 8}", 'E1014:') |
769 call CheckDefFailure("let x = #{xxx}", 'E720:') | 769 call CheckDefFailure("let x = #{xxx}", 'E720:') |
770 call CheckDefFailure("let x = #{xxx: 1", 'E723:') | 770 call CheckDefFailureMult(["let x = #{xxx: 1", "let y = 2"], 'E722:') |
771 call CheckDefFailure("let x = #{xxx: 1,", 'E723:') | 771 call CheckDefFailure("let x = #{xxx: 1,", 'E723:') |
772 call CheckDefFailure("let x = {'a': xxx}", 'E1001:') | 772 call CheckDefFailure("let x = {'a': xxx}", 'E1001:') |
773 call CheckDefFailure("let x = {xxx: 8}", 'E1001:') | 773 call CheckDefFailure("let x = {xxx: 8}", 'E1001:') |
774 call CheckDefFailure("let x = #{a: 1, a: 2}", 'E721:') | 774 call CheckDefFailure("let x = #{a: 1, a: 2}", 'E721:') |
775 call CheckDefFailure("let x = #", 'E1015:') | 775 call CheckDefFailure("let x = #", 'E1015:') |