aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-07-29 12:26:13 +0100
committerSean Dewar <seandewar@users.noreply.github.com>2021-09-16 00:14:47 +0100
commit7e9ea083213c3eb195fbf206f12a3aac1fa29033 (patch)
tree7bf1d6dfaa12f6ce922e9fef37d2b2c92845b0d9 /test/functional/core
parente88961943b85434ceebff6a31089c635ac39cd66 (diff)
downloadrneovim-7e9ea083213c3eb195fbf206f12a3aac1fa29033.tar.gz
rneovim-7e9ea083213c3eb195fbf206f12a3aac1fa29033.tar.bz2
rneovim-7e9ea083213c3eb195fbf206f12a3aac1fa29033.zip
feat(f_chansend): support Blob data argument
Diffstat (limited to 'test/functional/core')
-rw-r--r--test/functional/core/channels_spec.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/core/channels_spec.lua b/test/functional/core/channels_spec.lua
index 1ef34c7318..6efa4f9b80 100644
--- a/test/functional/core/channels_spec.lua
+++ b/test/functional/core/channels_spec.lua
@@ -89,6 +89,9 @@ describe('channels', function()
command("call chansend(id, 'howdy')")
eq({"notification", "stdout", {id, {"[1, ['howdy'], 'stdin']"}}}, next_msg())
+ command("call chansend(id, 0z686f6c61)")
+ eq({"notification", "stdout", {id, {"[1, ['hola'], 'stdin']"}}}, next_msg())
+
command("call chanclose(id, 'stdin')")
expect_twostreams({{"notification", "stdout", {id, {"[1, [''], 'stdin']"}}},
{'notification', 'stdout', {id, {''}}}},
@@ -131,6 +134,8 @@ describe('channels', function()
command("call chansend(id, 'TEXT\n')")
expect_twoline(id, "stdout", "TEXT\r", "[1, ['TEXT', ''], 'stdin']")
+ command("call chansend(id, 0z426c6f6273210a)")
+ expect_twoline(id, "stdout", "Blobs!\r", "[1, ['Blobs!', ''], 'stdin']")
command("call chansend(id, 'neovan')")
eq({"notification", "stdout", {id, {"neovan"}}}, next_msg())