Mercurial > vim
comparison src/testdir/test_listdict.vim @ 22754:837756417c5e v8.2.1925
patch 8.2.1925: list/dict test fails
Commit: https://github.com/vim/vim/commit/6d967125ad87b1c2a9467357286c3514d5dd1c40
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Oct 30 19:06:18 2020 +0100
patch 8.2.1925: list/dict test fails
Problem: List/dict test fails.
Solution: Correct expected exception.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 30 Oct 2020 19:15:04 +0100 |
parents | 159a637fe5b4 |
children | 42bb78d46354 |
comparison
equal
deleted
inserted
replaced
22753:de60f3ec1ffa | 22754:837756417c5e |
---|---|
239 call assert_equal([3000, 2900, 2001, 1600, 1501], [d[0], d[100], d[999], d[1400], d[1499]]) | 239 call assert_equal([3000, 2900, 2001, 1600, 1501], [d[0], d[100], d[999], d[1400], d[1499]]) |
240 let str = '' | 240 let str = '' |
241 try | 241 try |
242 let n = d[1500] | 242 let n = d[1500] |
243 catch | 243 catch |
244 let str=substitute(v:exception, '\v(.{14}).*( \d{4}).*', '\1\2', '') | 244 let str = substitute(v:exception, '\v(.{14}).*( "\d{4}").*', '\1\2', '') |
245 endtry | 245 endtry |
246 call assert_equal('Vim(let):E716: 1500', str) | 246 call assert_equal('Vim(let):E716: "1500"', str) |
247 | 247 |
248 " lookup each items | 248 " lookup each items |
249 for i in range(1500) | 249 for i in range(1500) |
250 call assert_equal(3000 - i, d[i]) | 250 call assert_equal(3000 - i, d[i]) |
251 endfor | 251 endfor |