summaryrefslogtreecommitdiffstats
path: root/src/testdir/test65.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-12-14 15:32:50 +0100
committerBram Moolenaar <Bram@vim.org>2011-12-14 15:32:50 +0100
commitd6e256c31aef8fc9268d10c0fa3073785d4c3723 (patch)
tree238fc7a79a56072668eb2898d8d9e13c94b42c8e /src/testdir/test65.in
parent2787ab91b0f588b4cb19ee32c9beb6fa7ebb4b1d (diff)
updated for version 7.3.377v7.3.377
Problem: No support for bitwise AND, OR, XOR and invert. Solution: Add add(), or(), invert() and xor() functions.
Diffstat (limited to 'src/testdir/test65.in')
-rw-r--r--src/testdir/test65.in19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/testdir/test65.in b/src/testdir/test65.in
index 896e9ed095..ca53f27555 100644
--- a/src/testdir/test65.in
+++ b/src/testdir/test65.in
@@ -1,4 +1,4 @@
-Test for floating point.
+Test for floating point and logical operators.
STARTTEST
:so small.vim
@@ -72,6 +72,23 @@ STARTTEST
:$put ='float2nr'
:$put =float2nr(123.456)
:$put =float2nr(-123.456)
+:$put ='AND'
+:$put =and(127, 127)
+:$put =and(127, 16)
+:$put =and(127, 128)
+:$put ='OR'
+:$put =or(16, 7)
+:$put =or(8, 7)
+:$put =or(0, 123)
+:$put ='XOR'
+:$put =xor(127, 127)
+:$put =xor(127, 16)
+:$put =xor(127, 128)
+:$put ='invert'
+:$put =and(invert(127), 65535)
+:$put =and(invert(16), 65535)
+:$put =and(invert(128), 65535)
+:$put =invert(1.0)
:/^Results/,$wq! test.out
ENDTEST