summaryrefslogtreecommitdiff
path: root/test/test_code_action_python.vader
diff options
context:
space:
mode:
authorTomáš Janoušek <tomi@nomi.cz>2021-02-20 17:16:47 +0100
committerGitHub <noreply@github.com>2021-02-20 16:16:47 +0000
commit2550f5d952caea4ac607ec0796d8f1fae4d7b9a5 (patch)
treef5883b44bea6f9f238b45b93f648c1c4da4e0ebc /test/test_code_action_python.vader
parentd340710fcfbd4db7bd2a8e4cd126306d4d7ef4e2 (diff)
downloadale-2550f5d952caea4ac607ec0796d8f1fae4d7b9a5.zip
Fixes to code actions (cursor moving, tests, EOL/EOF corner cases) (#3478)
* code_action: Don't move cursor when change covers entire file * code_action: Refactor/simplify ApplyChanges * code_action: Fix EOL at EOF corner cases while performing no changes * code_action: Fix column around EOL corner cases * code_action: Handle positions out of bounds * code_action: Add instructions for verifying corner case tests against vscode
Diffstat (limited to 'test/test_code_action_python.vader')
-rw-r--r--test/test_code_action_python.vader2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_code_action_python.vader b/test/test_code_action_python.vader
index fd30633d..2aac1ec7 100644
--- a/test/test_code_action_python.vader
+++ b/test/test_code_action_python.vader
@@ -35,7 +35,7 @@ Given python(Second python example):
Execute():
let g:changes = [
- \ {'end': {'offset': 16, 'line': 2}, 'newText': "\n\ndef func_ivlpdpao(f):\n exif = exifread.process_file(f)\n dt = str(exif['Image DateTime'])\n date = dt[:10].replace(':', '-')\n return date\n", 'start': {'offset': 16, 'line': 2}},
+ \ {'end': {'offset': 16, 'line': 2}, 'newText': "\n\n\ndef func_ivlpdpao(f):\n exif = exifread.process_file(f)\n dt = str(exif['Image DateTime'])\n date = dt[:10].replace(':', '-')\n return date\n", 'start': {'offset': 16, 'line': 2}},
\ {'end': {'offset': 32, 'line': 6}, 'newText': 'date = func', 'start': {'offset': 9, 'line': 6}},
\ {'end': {'offset': 42, 'line': 8}, 'newText': "ivlpdpao(f)\n", 'start': {'offset': 33, 'line': 6}}
\]