forked from aniani/vim
patch 8.2.3421: a bit of code is not covered by tests
Problem: A bit of code is not covered by tests. Solution: Add a few more test cases. (Dominique Pellé, closes #8857)
This commit is contained in:
committed by
Bram Moolenaar
parent
6b9efdde78
commit
d176ca3dde
@@ -1621,6 +1621,7 @@ func Test_trim()
|
||||
call assert_fails('eval trim(" vim ", " ", [])', 'E745:')
|
||||
call assert_fails('eval trim(" vim ", " ", -1)', 'E475:')
|
||||
call assert_fails('eval trim(" vim ", " ", 3)', 'E475:')
|
||||
call assert_fails('eval trim(" vim ", 0)', 'E475:')
|
||||
|
||||
let chars = join(map(range(1, 0x20) + [0xa0], {n -> n->nr2char()}), '')
|
||||
call assert_equal("x", trim(chars . "x" . chars))
|
||||
|
Reference in New Issue
Block a user