forked from aniani/vim
patch 8.1.1336: some eval functionality is not covered by tests
Problem: Some eval functionality is not covered by tests. Solution: Add a few more test cases. (Masato Nishihata, closes #4374)
This commit is contained in:
@@ -13,6 +13,7 @@ func Test_abs()
|
||||
call assert_equal('inf', string(abs(1.0/0.0)))
|
||||
call assert_equal('inf', string(abs(-1.0/0.0)))
|
||||
call assert_equal('nan', string(abs(0.0/0.0)))
|
||||
call assert_equal('12', string(abs('12abc')))
|
||||
call assert_equal('12', string(abs('-12abc')))
|
||||
call assert_fails("call abs([])", 'E745:')
|
||||
call assert_fails("call abs({})", 'E728:')
|
||||
|
||||
Reference in New Issue
Block a user