mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-13 05:23:46 -05:00
Fix tests for neovim
This commit is contained in:
@@ -7,7 +7,12 @@ function! s:setup()
|
||||
call utils#TestSetup(s:test_file)
|
||||
endfunction
|
||||
call testify#setup(function('s:setup'))
|
||||
call testify#teardown(function('utils#TestTeardown'))
|
||||
|
||||
function! s:teardown()
|
||||
let g:table_mode_header_fillchar = '-'
|
||||
bw!
|
||||
endfunction
|
||||
call testify#teardown(function('s:teardown'))
|
||||
|
||||
function! s:TestDeleteRow()
|
||||
call cursor(5, 7)
|
||||
|
||||
@@ -15,7 +15,7 @@ function! s:TestAddFormula()
|
||||
call testify#assert#equals(cell_value, '125.0')
|
||||
|
||||
call cursor(9, 15)
|
||||
call testify#assert#equals(getline('.'), '/* tmf: $4,2=Sum(1:3) */')
|
||||
call testify#assert#equals(getline('.'), ' tmf: $4,2=Sum(1:3) ')
|
||||
|
||||
call cursor(8, 15)
|
||||
call tablemode#spreadsheet#formula#Add('Sum(1:-1)')
|
||||
@@ -23,6 +23,6 @@ function! s:TestAddFormula()
|
||||
call testify#assert#equals(cell_value, '250.0')
|
||||
|
||||
call cursor(9, 15)
|
||||
call testify#assert#equals(getline('.'), '/* tmf: $4,2=Sum(1:3); $5,2=Sum(1:-1) */')
|
||||
call testify#assert#equals(getline('.'), ' tmf: $4,2=Sum(1:3) ; $5,2=Sum(1:-1)')
|
||||
endfunction
|
||||
call testify#it('Should Add a formula to the table correctly', function('s:TestAddFormula'))
|
||||
|
||||
Reference in New Issue
Block a user