diff options
author | Rainer Borene <rainerborene@gmail.com> | 2014-10-24 15:09:34 -0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-11-04 12:57:33 -0300 |
commit | fd503f1432cc546182bb8988c832847ac76c7b6f (patch) | |
tree | ad15d72ea21b8d285c52ac3b2778e8cd81bb8f76 /test | |
parent | f85051b67ec5196062be8e476f71898e60e869d1 (diff) | |
download | rneovim-fd503f1432cc546182bb8988c832847ac76c7b6f.tar.gz rneovim-fd503f1432cc546182bb8988c832847ac76c7b6f.tar.bz2 rneovim-fd503f1432cc546182bb8988c832847ac76c7b6f.zip |
legacy tests: migrate test41
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/legacy/041_writing_and_reading_hundred_kbyte_spec.lua | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/functional/legacy/041_writing_and_reading_hundred_kbyte_spec.lua b/test/functional/legacy/041_writing_and_reading_hundred_kbyte_spec.lua new file mode 100644 index 0000000000..ed1a914c0f --- /dev/null +++ b/test/functional/legacy/041_writing_and_reading_hundred_kbyte_spec.lua @@ -0,0 +1,40 @@ +-- Test for writing and reading a file of over 100 Kbyte + +local helpers = require('test.functional.helpers') +local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert +local execute, expect = helpers.execute, helpers.expect + +describe('writing and reading a file of over 100 Kbyte', function() + setup(clear) + + it('is working', function() + insert([[ + This is the start + This is the leader + This is the middle + This is the trailer + This is the end]]) + + feed('kY3000p2GY3000p') + + execute('w! test.out') + execute('%d') + execute('e! test.out') + execute('yank A') + execute('3003yank A') + execute('6005yank A') + execute('%d') + execute('0put a') + execute('1d | $d') + execute('w!') + + expect([[ + This is the start + This is the middle + This is the end]]) + end) + + teardown(function() + os.remove('test.out') + end) +end) |