diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-03-04 16:27:57 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-03-04 16:27:57 +0100 |
| commit | 54dd1d2bf9a6cbfbd754e1e53fdda55f3acbbc15 (patch) | |
| tree | 5296de9e9048aa3fa3fc310b98930e67db5987ea | |
| parent | fd8dfc1acb97b43469b629f042d30dcde30ac1d8 (diff) | |
| download | vis-54dd1d2bf9a6cbfbd754e1e53fdda55f3acbbc15.tar.gz vis-54dd1d2bf9a6cbfbd754e1e53fdda55f3acbbc15.tar.xz | |
test/vis: tweak word motion tests
Add more tests for:
- starting position on a space/tab
- single letter words
- special symbols
24 files changed, 113 insertions, 45 deletions
diff --git a/vis/motions/next-end-of-bigword.in b/vis/motions/next-end-of-bigword.in index 99b438e..26ec987 100644 --- a/vis/motions/next-end-of-bigword.in +++ b/vis/motions/next-end-of-bigword.in @@ -1,9 +1,11 @@ _start-word next mid_dle-word next end-word_ next -space_ next -tab_ next -word-cap with!delims$and count + starting from a space + starting from a tab +a b c d : single letter words +skipping-tab next ++-*/\"'`^%&,;|_(){}<>[]=?! special symbols next line word_at_end diff --git a/vis/motions/next-end-of-bigword.keys b/vis/motions/next-end-of-bigword.keys index cd6f312..4bec703 100644 --- a/vis/motions/next-end-of-bigword.keys +++ b/vis/motions/next-end-of-bigword.keys @@ -1,9 +1,11 @@ f_Er|+ ;E.+ ;E.+ -;E.+ -;E.+ +0E.+ +0E.+ +4E.+ 2E.+ +E.+ E .+ E. diff --git a/vis/motions/next-end-of-bigword.ref b/vis/motions/next-end-of-bigword.ref index c22efbf..fe57a91 100644 --- a/vis/motions/next-end-of-bigword.ref +++ b/vis/motions/next-end-of-bigword.ref @@ -1,9 +1,11 @@ _start-wor| next mid_dle-wor| next end-word_ nex| -space_ nex| -tab_ nex| -word-cap with!delims$an| count + startin| from a space + startin| from a tab +a b c d | single letter words +skipping-tab nex| ++-*/\"'`^%&,;|_(){}<>[]=?| special symbols nex| line word_at_en| diff --git a/vis/motions/next-end-of-word.in b/vis/motions/next-end-of-word.in index 078ccf1..d67d828 100644 --- a/vis/motions/next-end-of-word.in +++ b/vis/motions/next-end-of-word.in @@ -1,9 +1,12 @@ _start next mid_dle next end_ next -space_ next -tab_ next + starting from a space + starting from a tab +a b c d : single letter words +tab next word with count ++-*/\"'`^%&,;|_(){}<>[]=?! special symbols next line word_at_end diff --git a/vis/motions/next-end-of-word.keys b/vis/motions/next-end-of-word.keys index 5138963..9aff65e 100644 --- a/vis/motions/next-end-of-word.keys +++ b/vis/motions/next-end-of-word.keys @@ -1,9 +1,12 @@ f_er|+ ;e.+ ;e.+ -;e.+ -;e.+ +0e.+ +0e.+ +4e.+ +2e.+ 2e.+ +e.+ e .+ e. diff --git a/vis/motions/next-end-of-word.ref b/vis/motions/next-end-of-word.ref index 2b1761e..6510a23 100644 --- a/vis/motions/next-end-of-word.ref +++ b/vis/motions/next-end-of-word.ref @@ -1,9 +1,12 @@ _star| next mid_dl| next end_ nex| -space_ nex| -tab_ nex| + startin| from a space + startin| from a tab +a b c d | single letter words +tab nex| word wit| count ++-*/\"'`^%&,;|_(){}<>[]=?! special symbols nex| line word_at_en| diff --git a/vis/motions/next-start-of-bigword.in b/vis/motions/next-start-of-bigword.in index 99b438e..4b9848d 100644 --- a/vis/motions/next-start-of-bigword.in +++ b/vis/motions/next-start-of-bigword.in @@ -1,9 +1,11 @@ _start-word next mid_dle-word next end-word_ next -space_ next -tab_ next -word-cap with!delims$and count + starting from a space + starting from a tab +a b c d : single letter words +tab next ++-*/\"'`^%&,;|_(){}<>[]=?! special symbols next line word_at_end diff --git a/vis/motions/next-start-of-bigword.keys b/vis/motions/next-start-of-bigword.keys index 7ba07b2..51112dc 100644 --- a/vis/motions/next-start-of-bigword.keys +++ b/vis/motions/next-start-of-bigword.keys @@ -1,9 +1,11 @@ f_Wr|+ ;W.+ ;W.+ -;W.+ -;W.+ -2W.+ +0W.+ +0W.+ +4W.+ +W.+ +W.+ W .+ -Whh. +Wi<Enter>|<Escape> diff --git a/vis/motions/next-start-of-bigword.ref b/vis/motions/next-start-of-bigword.ref index 35ba39a..d015890 100644 --- a/vis/motions/next-start-of-bigword.ref +++ b/vis/motions/next-start-of-bigword.ref @@ -1,9 +1,12 @@ _start-word |ext mid_dle-word |ext end-word_ |ext -space_ |ext -tab_ |ext -word-cap with!delims$and |ount + |tarting from a space + |tarting from a tab +a b c d | single letter words +tab |ext ++-*/\"'`^%&,;|_(){}<>[]=?! |pecial symbols |ext line -word_at_en| +word_at_end +| diff --git a/vis/motions/next-start-of-word.in b/vis/motions/next-start-of-word.in index 078ccf1..c1b55b6 100644 --- a/vis/motions/next-start-of-word.in +++ b/vis/motions/next-start-of-word.in @@ -1,8 +1,11 @@ _start next mid_dle next end_ next -space_ next -tab_ next + starting from a space + starting from a tab +a b c d : single letter words +tab next ++-*/\"'`^%&,;|_(){}<>[]=?! special symbols word with count next line diff --git a/vis/motions/next-start-of-word.keys b/vis/motions/next-start-of-word.keys index ba52a45..b42c9f2 100644 --- a/vis/motions/next-start-of-word.keys +++ b/vis/motions/next-start-of-word.keys @@ -1,9 +1,12 @@ f_wr|+ ;w.+ ;w.+ -;w.+ -;w.+ +0w.+ +0w.+ +4w.+ +w.+ +w.+ 2w.+ w .+ -whh. +wi<Enter>|<Escape> diff --git a/vis/motions/next-start-of-word.ref b/vis/motions/next-start-of-word.ref index 48cfae1..436964a 100644 --- a/vis/motions/next-start-of-word.ref +++ b/vis/motions/next-start-of-word.ref @@ -1,9 +1,13 @@ _start |ext mid_dle |ext end_ |ext -space_ |ext -tab_ |ext + |tarting from a space + |tarting from a tab +a b c d | single letter words +tab |ext ++-*/\"'`^%&,;||(){}<>[]=?! special symbols word with |ount |ext line -word_at_en| +word_at_end +| diff --git a/vis/motions/prev-end-of-bigword.in b/vis/motions/prev-end-of-bigword.in index b41515a..defda4e 100644 --- a/vis/motions/prev-end-of-bigword.in +++ b/vis/motions/prev-end-of-bigword.in @@ -2,6 +2,9 @@ prev WORD-end_ prev WORD-mid_dle prev WORD-word _start -prev WORD-space _ prev WORD-tab _ +starting from a space +starting from a tab +single letter words a b c d _ +special +-*/\"'`^%&,;|_(){}<>[]=?! prev WORD-word with count _ diff --git a/vis/motions/prev-end-of-bigword.keys b/vis/motions/prev-end-of-bigword.keys index 6ac3d9b..a0c18c7 100644 --- a/vis/motions/prev-end-of-bigword.keys +++ b/vis/motions/prev-end-of-bigword.keys @@ -3,5 +3,8 @@ f_gEr|+ ;gE.+ ;gE.+ ;gE.+ -;gE.+ +$hgE.+ +$hgE.+ +g_4gE.+ +$2gE.+ ;3gE.+ diff --git a/vis/motions/prev-end-of-bigword.ref b/vis/motions/prev-end-of-bigword.ref index 10855f3..346778b 100644 --- a/vis/motions/prev-end-of-bigword.ref +++ b/vis/motions/prev-end-of-bigword.ref @@ -2,6 +2,9 @@ pre| WORD-end_ pre| WORD-mid_dle prev WORD-wor| _start -prev WORD-spac| _ prev WORD-ta| _ +starting from a spac| +starting from a ta| +single letter words | b c d _ +specia| +-*/\"'`^%&,;|_(){}<>[]=?! prev WORD-wor| with count _ diff --git a/vis/motions/prev-end-of-word.in b/vis/motions/prev-end-of-word.in index a5402a1..7f6a80c 100644 --- a/vis/motions/prev-end-of-word.in +++ b/vis/motions/prev-end-of-word.in @@ -2,6 +2,9 @@ prev word end_ prev word mid_dle prev word _start -prev word space _ prev word tab _ +starting from a space +starting from a tab +single letter words a b c d _ +special +-*/\"'`^%&,;|_(){}<>[]=?! prev word with count _ diff --git a/vis/motions/prev-end-of-word.keys b/vis/motions/prev-end-of-word.keys index 376b27d..d2b8ef4 100644 --- a/vis/motions/prev-end-of-word.keys +++ b/vis/motions/prev-end-of-word.keys @@ -3,5 +3,8 @@ f_ger|+ ;ge.+ ;ge.+ ;ge.+ -;ge.+ +$hge.+ +$hge.+ +g_4ge.+ +g_ge.+ ;3ge.+ diff --git a/vis/motions/prev-end-of-word.ref b/vis/motions/prev-end-of-word.ref index 783247e..7b30238 100644 --- a/vis/motions/prev-end-of-word.ref +++ b/vis/motions/prev-end-of-word.ref @@ -2,6 +2,9 @@ prev wor| end_ prev wor| mid_dle prev wor| _start -prev word spac| _ prev word ta| _ +starting from a spac| +starting from a ta| +single letter words | b c d _ +special +-*/\"'`^%&,;||(){}<>[]=?! prev wor| with count _ diff --git a/vis/motions/prev-start-of-bigword.in b/vis/motions/prev-start-of-bigword.in index d69181b..8f287f1 100644 --- a/vis/motions/prev-start-of-bigword.in +++ b/vis/motions/prev-start-of-bigword.in @@ -1,6 +1,9 @@ prev WORD-end_ prev WORD-mid_dle prev WORD-word _start -prev WORD-space _ prev WORD-tab _ +starting from space +starting from tab +single letter words a b c d _ +special symbols +-*/\"'`^%&,;|_(){}<>[]=?! prev WORD-word with count _ diff --git a/vis/motions/prev-start-of-bigword.keys b/vis/motions/prev-start-of-bigword.keys index 5914e30..037a2c7 100644 --- a/vis/motions/prev-start-of-bigword.keys +++ b/vis/motions/prev-start-of-bigword.keys @@ -3,5 +3,8 @@ f_Br|+ ;B.+ ;B.+ ;B.+ -;B.+ +$hB.+ +$hB.+ +g_4B.+ +$B.+ ;3B.+ diff --git a/vis/motions/prev-start-of-bigword.ref b/vis/motions/prev-start-of-bigword.ref index e0bfd71..80ef519 100644 --- a/vis/motions/prev-start-of-bigword.ref +++ b/vis/motions/prev-start-of-bigword.ref @@ -1,6 +1,9 @@ prev |ORD-end_ prev |ORD-mid_dle prev |ORD-word _start -prev |ORD-space _ prev |ORD-tab _ +starting from |pace +starting from |ab +single letter words | b c d _ +special symbols |-*/\"'`^%&,;|_(){}<>[]=?! prev |ORD-word with count _ diff --git a/vis/motions/prev-start-of-word.in b/vis/motions/prev-start-of-word.in index 1edb62a..23871b0 100644 --- a/vis/motions/prev-start-of-word.in +++ b/vis/motions/prev-start-of-word.in @@ -1,6 +1,9 @@ prev word-end_ prev word-mid_dle prev word-word _start -prev word-space _ prev word-tab _ +starting from space +starting from tab +single letter words a b c d _ +special symbols +-*/\"'`^%&,;|_(){}<>[]=?! prev word-word with count _ diff --git a/vis/motions/prev-start-of-word.keys b/vis/motions/prev-start-of-word.keys index fac985d..a397494 100644 --- a/vis/motions/prev-start-of-word.keys +++ b/vis/motions/prev-start-of-word.keys @@ -3,5 +3,8 @@ f_br|+ ;b.+ ;b.+ ;b.+ -;b.+ +$hb.+ +$hb.+ +g_4b.+ +$b.+ ;3b.+ diff --git a/vis/motions/prev-start-of-word.ref b/vis/motions/prev-start-of-word.ref index e90f8ae..c75a3a5 100644 --- a/vis/motions/prev-start-of-word.ref +++ b/vis/motions/prev-start-of-word.ref @@ -1,6 +1,9 @@ prev word-|nd_ prev word-|id_dle prev word-|ord _start -prev word-|pace _ prev word-|ab _ +starting from |pace +starting from |ab +single letter words | b c d _ +special symbols +-*/\"'`^%&,;|_|){}<>[]=?! prev word-|ord with count _ |
