-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: merge conflict master --> wrap_around
- Loading branch information
Showing
7 changed files
with
123 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# ============================================================================== | ||
# Tests the functionality for the g:doge_buffer_mappings option. | ||
# ============================================================================== | ||
Given php (PHP function without parameters where g:doge_buffer_mappings = 1): | ||
function myFunction() {} | ||
|
||
Do (trigger doge): | ||
:let g:doge_comment_interactive = 1\<CR> | ||
\<C-d> | ||
Lorem ipsum | ||
\<Tab> | ||
void | ||
\<Tab> | ||
Lorem ipsum | ||
|
||
# Trigger an additional <Tab> to deactivate DoGe. | ||
\<Tab> | ||
|
||
Then (all buffer mappings should not exists anymore): | ||
AssertEqual 0, hasmapto('<Plug>(doge-comment-jump-forward)', 'nis') | ||
AssertEqual 0, hasmapto('<Plug>(doge-comment-jump-backward)', 'nis') | ||
|
||
Expect php (generated comment with @param and @return tags): | ||
/** | ||
* Lorem ipsum | ||
* | ||
* @return void Lorem ipsum | ||
*/ | ||
function myFunction() {} | ||
|
||
Do (let g:doge_comment_interactive = 0): | ||
# Disable the option again so that upcoming tests will not fail. | ||
:let g:doge_comment_interactive = 0\<CR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters