aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-09 01:51:10 +0300
committerZyX <kp-pav@yandex.ru>2017-04-09 03:24:12 +0300
commit4da4d5cfd93587fd51524c6c9d6e47ef63d69dc8 (patch)
treed5d41031c4fdbc2a6bab704ea0f71b62553a4279
parentcb57644cb40123af17f03a4381b838ebbe137dd8 (diff)
downloadrneovim-4da4d5cfd93587fd51524c6c9d6e47ef63d69dc8.tar.gz
rneovim-4da4d5cfd93587fd51524c6c9d6e47ef63d69dc8.tar.bz2
rneovim-4da4d5cfd93587fd51524c6c9d6e47ef63d69dc8.zip
functests: Fix legacy/065_float_and_logic_operators_spec
-rw-r--r--test/functional/legacy/065_float_and_logic_operators_spec.lua14
1 files changed, 2 insertions, 12 deletions
diff --git a/test/functional/legacy/065_float_and_logic_operators_spec.lua b/test/functional/legacy/065_float_and_logic_operators_spec.lua
index 615dff1f3b..ad0fdd587c 100644
--- a/test/functional/legacy/065_float_and_logic_operators_spec.lua
+++ b/test/functional/legacy/065_float_and_logic_operators_spec.lua
@@ -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: