diff src/testdir/test_assert.vim @ 15623:e3ddffe48d17 v8.1.0819

patch 8.1.0819: a failed assert with a long string is hard to read commit https://github.com/vim/vim/commit/865767126e97d9ac65e052a657b29bbc32dcb512 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 25 20:48:33 2019 +0100 patch 8.1.0819: a failed assert with a long string is hard to read Problem: A failed assert with a long string is hard to read. Solution: Shorten the assert message.
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Jan 2019 21:00:14 +0100
parents 0c845463a0db
children fec4416adb80
line wrap: on
line diff
--- a/src/testdir/test_assert.vim
+++ b/src/testdir/test_assert.vim
@@ -31,6 +31,10 @@ func Test_assert_equal()
   call assert_equal(1, assert_equal('bar', s))
   call assert_match("Expected 'bar' but got 'foo'", v:errors[0])
   call remove(v:errors, 0)
+
+  call assert_equal('XxxxxxxxxxxxxxxxxxxxxxX', 'XyyyyyyyyyyyyyyyyyyyyyyyyyX')
+  call assert_match("Expected 'X\\\\\\[x occurs 21 times]X' but got 'X\\\\\\[y occurs 25 times]X'", v:errors[0])
+  call remove(v:errors, 0)
 endfunc
 
 func Test_assert_equalfile()