diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-03-04 18:26:54 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-03-04 18:26:54 +0100 |
| commit | b97c6d29b6a1c66c2596033cd255d6803939aba0 (patch) | |
| tree | 4d0f68ad1f76e7e94214a18281d3419d5ffff591 /lua/getline.lua | |
| parent | 54dd1d2bf9a6cbfbd754e1e53fdda55f3acbbc15 (diff) | |
| download | vis-b97c6d29b6a1c66c2596033cd255d6803939aba0.tar.gz vis-b97c6d29b6a1c66c2596033cd255d6803939aba0.tar.xz | |
test/lua: convert tests to busted infrastructure
Diffstat (limited to 'lua/getline.lua')
| -rw-r--r-- | lua/getline.lua | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lua/getline.lua b/lua/getline.lua deleted file mode 100644 index c8b0fe2..0000000 --- a/lua/getline.lua +++ /dev/null @@ -1,17 +0,0 @@ -local win = vis.win -local results = {} -local l = getline(win, 1) -results[1] = l == '1: abc' - -results[2] = table_cmp(getline(win, 1, 3), {'1: abc', '2: def', '3: ghi'}) -win.cursor:to(4, 0) -results[3] = getline(win, '.') == '4: jkl' -results[4] = getline(win, '$') == '9: yz_' -win.cursor:to(4, 0) -results[5] = table_cmp(getline(win, '.', 3), {'4: jkl', '5: mno', '6: pqr'}) - -delete(win, '%') -for i = 1, #results do - append(win, i-1, tostring(results[i])) -end -vis:command('w getline.out') |
