Commit Graph

42 Commits

Author SHA1 Message Date
Maxime Coste
cc88b0f586 Change word object selector to fail if the cursor is not on a word char 2017-03-04 18:33:50 +00:00
Maxime Coste
31edff85c3 Move object unit tests in their own subfolder 2017-03-03 23:31:30 +00:00
Maxime Coste
28940e0e28 Fix tests for indent selection 2017-03-03 23:28:30 +00:00
Maxime Coste
ddc5e958e6 Return an optional selection in most selectors, fail rather than keep current
Instead of returning the current selection when a selector fails, return
an empty Optional<Selection>. That means object selections will now
remove the selections that dont match the object.
2017-03-03 20:17:11 +00:00
Frank LENORMAND
58cad9aecf test: Fix UTF8 compliant locale detection 2017-02-23 18:46:56 +03:00
Maxime Coste
bc0dfa9e8f Use <a-'> for backward rotate selection and move rotate content to <a-"> 2017-02-01 22:53:42 +00:00
Maxime Coste
965cd8e0c3 Fix align support with aligntab = true 2016-10-28 09:50:25 +01:00
Maxime Coste
19f65f4c6e Add the missing repeat-select test cases 2016-10-14 00:09:52 +01:00
Maxime Coste
28cfd0bb61 Fix get_column function and add some unit tests for fullwidth text 2016-10-01 13:45:00 +01:00
Maxime Coste
696db111e2 Selecting 'around' word when on spaces after word now selects next word 2016-09-26 23:33:28 +01:00
Frank LENORMAND
ad288be1a0 Add unit tests for an arbitrary slash-based selection 2016-07-26 10:42:33 +03:00
Maxime Coste
25a31534ec Fix splitting selecting the first buffer char when there is a match at buffer begin 2016-04-30 10:37:31 +01:00
Maxime Coste
736ba7dabf Add a spaces to tabs test 2016-03-30 19:41:21 +01:00
Maxime Coste
38f146d849 Fix another bug in Buffer::replace implementation 2016-03-17 12:38:09 +00:00
Maxime Coste
f8f530e6ac Add a replace-line unit test 2016-03-17 12:07:38 +00:00
Maxime Coste
757bbe9e56 Add a reload test 2016-03-17 11:38:07 +00:00
O. Perret
b2a54b8416 Add reverse search unit tests 2015-12-27 16:24:37 +01:00
Frank LENORMAND
eba673e7f5 Add two unit tests for invalid syntaxes in the command 2015-12-15 11:13:26 +03:00
Maxime Coste
ec88e394b0 Fix tests after macros/marks syntax change 2015-08-20 19:15:44 +01:00
Maxime Coste
4d39657b9a Add unit tests for <a-x> and <a-X> 2015-08-11 13:28:50 +01:00
Maxime Coste
c61c89fac9 Add a save selections test case 2015-07-11 11:39:41 +01:00
Maxime Coste
28ebe776c0 Refactor select_arguments and slightly change behaviour for non-inner
non inner argument contains the argument, preceeding whitespaces,
and eventual ending comma, except for first arguments (that
contains the whitespaces after the comma), and last argument (that
contains the comma before it).
2015-07-01 23:47:22 +01:00
Viktor Palmkvist
e21ea23c24 Added tests for argument text object 2015-07-01 17:42:10 +02:00
Maxime Coste
373ad05f29 Fix test with new selection desc format 2015-06-27 16:14:15 +01:00
Maxime Coste
1261d45646 Properly test rotate 2015-06-23 20:58:44 +01:00
Maxime Coste
70dfb4ba6b Fix test handling of ' and rotate-content test 2015-06-21 19:36:53 +01:00
Maxime Coste
cf8695cb84 Fix unit tests after gl/gh behaviour change 2015-06-08 22:32:15 +01:00
Maxime Coste
63bbb6e3df Fix test with change in the selection desc format 2015-04-14 15:53:12 +01:00
Maxime Coste
0ae628fde7 Add a $ command unit test 2015-03-13 13:50:08 +00:00
Maxime Coste
56dd5f9540 Fix selecting of insert text in SelectionList::insert 2015-02-09 21:09:17 +00:00
Maxime Coste
5b117ae00f Another try to fix pipe-to test on OSX 2015-01-12 20:41:55 +00:00
Maxime Coste
78eb2a46d4 Try an alternative pipe-to method to fix OSX test 2015-01-12 20:31:45 +00:00
Maxime Coste
c538778b7e Remove trailing eol 2014-12-15 13:24:21 +00:00
Maxime Coste
1cdba68bcf Try to fix OSX pipe-to test 2014-12-13 18:30:56 +00:00
Maxime Coste
a834f1aa75 Fix pipe-insert test 2014-12-12 13:59:10 +00:00
Maxime Coste
45d1ec36d1 Rename tests to avoid upper/lower case collisions 2014-11-26 13:56:00 +00:00
Maxime Coste
88def85d77 Do not merge overlapping selections in InputMode::Replace
Fixes #237
2014-11-22 21:20:29 +00:00
Maxime Coste
ab640f9fbf Tweak the way we set initial text in testing framework 2014-11-22 21:20:29 +00:00
Maxime Coste
00318433e1 Fix goto last buffer test 2014-10-11 15:52:53 +01:00
Maxime Coste
ab930ccfa8 concat-{yank,delete} was removed, replace with concat-paste test 2014-10-09 19:08:33 +01:00
Maxime Coste
5c3f8c648c Fix various tests 2014-10-09 19:05:42 +01:00
Alex Leferry 2
d20d43bf36 add testing framework 2014-06-30 12:22:50 +02:00