diff options
author | Lucas Hoffmann <l-m-h@web.de> | 2015-06-11 01:01:22 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-06-16 01:23:23 -0400 |
commit | a15ba262e4592cdfb270afad4471b023284cb215 (patch) | |
tree | 64233341a28926b9695238dcae972ea3d106e184 /test/functional/legacy/argument_0count_spec.lua | |
parent | 34fdb11e53496b02d3af78156efcbbee07a4352c (diff) | |
download | rneovim-a15ba262e4592cdfb270afad4471b023284cb215.tar.gz rneovim-a15ba262e4592cdfb270afad4471b023284cb215.tar.bz2 rneovim-a15ba262e4592cdfb270afad4471b023284cb215.zip |
tests: Migrate legacy test argument_0count.
Diffstat (limited to 'test/functional/legacy/argument_0count_spec.lua')
-rw-r--r-- | test/functional/legacy/argument_0count_spec.lua | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/test/functional/legacy/argument_0count_spec.lua b/test/functional/legacy/argument_0count_spec.lua new file mode 100644 index 0000000000..d27809c8d8 --- /dev/null +++ b/test/functional/legacy/argument_0count_spec.lua @@ -0,0 +1,38 @@ +-- Tests for :0argadd and :0argedit + +local helpers = require('test.functional.helpers') +local source, clear, expect = helpers.source, helpers.clear, helpers.expect + +describe('argument_0count', function() + setup(clear) + + it('is working', function() + source([[ + let arglists = [] + arga a b c d + 2argu + 0arga added + call add(arglists, argv()) + 2argu + arga third + call add(arglists, argv()) + %argd + arga a b c d + 2argu + 0arge edited + call add(arglists, argv()) + 2argu + arga third + call add(arglists, argv()) + call append(0, map(copy(arglists), 'join(v:val, " ")')) + ]]) + + -- Assert buffer contents. + expect([=[ + added a b c d + added a third b c d + edited a b c d + edited a third b c d + ]=]) + end) +end) |