1
0
forked from aniani/vim

patch 8.0.0186: confusing error message from assert_notequal()

Problem:    The error message from assert_notequal() is confusing.
Solution:   Only mention the expected value.
This commit is contained in:
Bram Moolenaar
2017-01-14 20:06:14 +01:00
parent fad609d067
commit 5869cf060e
3 changed files with 16 additions and 11 deletions

View File

@@ -32,7 +32,7 @@ func Test_assert_notequal()
call assert_notequal([1, 2, 3], s)
call assert_notequal('foo', s)
call assert_match("Expected 'foo' differs from 'foo'", v:errors[0])
call assert_match("Expected not equal to 'foo'", v:errors[0])
call remove(v:errors, 0)
endfunc