aboutsummaryrefslogtreecommitdiff
path: root/test/functional/clipboard/clipboard_provider_spec.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-01-21 18:45:24 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-01-22 08:54:42 -0300
commit5b65ac2ca7995248eafbbc78abc1645dc93b636b (patch)
treed84fbf3937a056c7d3f54d7797706b05fb66d7e2 /test/functional/clipboard/clipboard_provider_spec.lua
parentf08fe552f463475f60444fc7f9df982e8f81baf0 (diff)
downloadrneovim-5b65ac2ca7995248eafbbc78abc1645dc93b636b.tar.gz
rneovim-5b65ac2ca7995248eafbbc78abc1645dc93b636b.tar.bz2
rneovim-5b65ac2ca7995248eafbbc78abc1645dc93b636b.zip
test: Make it possible to run functional tests with plain lua
Replace the hexadecimal escape sequences, which are only supported by luajit
Diffstat (limited to 'test/functional/clipboard/clipboard_provider_spec.lua')
-rw-r--r--test/functional/clipboard/clipboard_provider_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/clipboard/clipboard_provider_spec.lua b/test/functional/clipboard/clipboard_provider_spec.lua
index ccbb74e487..c412c26c1a 100644
--- a/test/functional/clipboard/clipboard_provider_spec.lua
+++ b/test/functional/clipboard/clipboard_provider_spec.lua
@@ -72,10 +72,10 @@ describe('clipboard usage', function()
reset()
-- handle null bytes
- insert("some\x16000text\n\x16000very binary\x16000")
+ insert("some\022000text\n\022000very binary\022000")
feed('"*y-+"*p')
eq({'some\ntext', '\nvery binary\n',''}, eval("g:test_clip['*']"))
- expect("some\x00text\n\x00very binary\x00\nsome\x00text\n\x00very binary\x00")
+ expect("some\00text\n\00very binary\00\nsome\00text\n\00very binary\00")
-- test getreg/getregtype
eq('some\ntext\n\nvery binary\n\n', eval("getreg('*', 1)"))
@@ -92,7 +92,7 @@ describe('clipboard usage', function()
expect([[
very much
blocktext]])
- eq("\x165", eval("getregtype('*')"))
+ eq("\0225", eval("getregtype('*')"))
reset()
-- test setreg