diff options
author | w0rp <devw0rp@gmail.com> | 2018-12-18 11:13:28 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-12-18 11:13:28 +0000 |
commit | f1ed654ca5318de5a24b37d882e55e04e4e566c8 (patch) | |
tree | 2a41c15887e1bf5a9fed3b466a2c24f62545d54a /test/fixers | |
parent | 0e3778e335f67a48571bf2b7c5c59c73005efdfa (diff) | |
download | ale-f1ed654ca5318de5a24b37d882e55e04e4e566c8.zip |
#2132 Change (buffer, lines) fixer functions to (buffer, done, lines)
Diffstat (limited to 'test/fixers')
-rw-r--r-- | test/fixers/test_break_up_long_lines_python_fixer.vader | 4 | ||||
-rw-r--r-- | test/fixers/test_trim_whitespace.vader | 18 |
2 files changed, 11 insertions, 11 deletions
diff --git a/test/fixers/test_break_up_long_lines_python_fixer.vader b/test/fixers/test_break_up_long_lines_python_fixer.vader index 5fd991f0..847d3358 100644 --- a/test/fixers/test_break_up_long_lines_python_fixer.vader +++ b/test/fixers/test_break_up_long_lines_python_fixer.vader @@ -16,7 +16,7 @@ Execute(Long lines with basic function calls should be broken up correctly): \ ' bar,', \ '))', \ ], - \ ale#fixers#generic_python#BreakUpLongLines(bufnr(''), [ + \ ale#fixers#generic_python#BreakUpLongLines(bufnr(''), v:null, [ \ 'def foo():', \ ' some_variable = this_is_a_longer_function(first_argument, second_argument, third_with_function_call(foo, bar))', \ ]) @@ -33,7 +33,7 @@ Execute(Longer lines should be permitted if a configuration file allows it): \ ' a_third_long_word,', \ ')' \ ], - \ ale#fixers#generic_python#BreakUpLongLines(bufnr(''), [ + \ ale#fixers#generic_python#BreakUpLongLines(bufnr(''), v:null, [ \ 'x = this_line_is_between_79_and_90_characters(first, second, third, fourth, fifth)', \ 'y = this_line_is_longer_than_90_characters(much_longer_word, another_longer_word, a_third_long_word)', \ ]) diff --git a/test/fixers/test_trim_whitespace.vader b/test/fixers/test_trim_whitespace.vader index 2ffbcb04..10070374 100644 --- a/test/fixers/test_trim_whitespace.vader +++ b/test/fixers/test_trim_whitespace.vader @@ -16,13 +16,13 @@ Execute(Should delete all whitespace at the end of different lines): \ ' bar,', \ '))', \ ], - \ ale#fixers#generic#TrimWhitespace(bufnr(''), [ - \ 'def foo():', - \ ' some_variable = this_is_a_longer_function(', - \ 'first_argument,', - \ ' second_argument,', - \ ' third_with_function_call(', - \ 'foo,', - \ ' bar,', - \ '))', + \ ale#fixers#generic#TrimWhitespace(bufnr(''), v:null, [ + \ 'def foo():', + \ ' some_variable = this_is_a_longer_function(', + \ 'first_argument,', + \ ' second_argument,', + \ ' third_with_function_call(', + \ 'foo,', + \ ' bar,', + \ '))', \ ]) |