functests: Fix legacy/065_float_and_logic_operators_spec

This commit is contained in:
ZyX 2017-04-09 01:51:10 +03:00
parent cb57644cb4
commit 4da4d5cfd9
1 changed files with 2 additions and 12 deletions

View File

@ -44,14 +44,7 @@ describe('floating point and logical operators', function()
$put ='abs'
$put =printf('%d', abs(1456))
$put =printf('%d', abs(-4))
]])
-- The test will throw an error if this line is included in a source()
-- call. The vim expression throws a exception "E745: Using a List as a
-- Number" which is fatal in a source() call but not in a execute() call.
command([[$put =printf('%d', abs([1, 2, 3]))]])
source([[
silent! $put =printf('%d', abs([1, 2, 3]))
$put =printf('%g', abs(14.56))
$put =printf('%g', abs(-54.32))
$put ='ceil'
@ -100,12 +93,9 @@ describe('floating point and logical operators', function()
$put =and(invert(127), 65535)
$put =and(invert(16), 65535)
$put =and(invert(128), 65535)
silent! $put =invert(1.0)
]])
-- This line can not be included in a source() call. It throws a "E805:
-- Using a Float as a Number". Also compare comment above.
command('$put =invert(1.0)')
-- Assert buffer contents.
expect([=[
Results of test65: