vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 9c3105a0dd4b970412c283a079a7c30634374ce9
parent 1290ae5af3a4058adf761d531352a0b5333588d8
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat,  4 Mar 2017 16:27:57 +0100

test/vis: tweak word motion tests

Add more tests for:

 - starting position on a space/tab
 - single letter words
 - special symbols

Diffstat:
Mvis/motions/next-end-of-bigword.in | 8+++++---
Mvis/motions/next-end-of-bigword.keys | 6++++--
Mvis/motions/next-end-of-bigword.ref | 8+++++---
Mvis/motions/next-end-of-word.in | 7+++++--
Mvis/motions/next-end-of-word.keys | 7+++++--
Mvis/motions/next-end-of-word.ref | 7+++++--
Mvis/motions/next-start-of-bigword.in | 8+++++---
Mvis/motions/next-start-of-bigword.keys | 10++++++----
Mvis/motions/next-start-of-bigword.ref | 11+++++++----
Mvis/motions/next-start-of-word.in | 7+++++--
Mvis/motions/next-start-of-word.keys | 9++++++---
Mvis/motions/next-start-of-word.ref | 10+++++++---
Mvis/motions/prev-end-of-bigword.in | 5++++-
Mvis/motions/prev-end-of-bigword.keys | 5++++-
Mvis/motions/prev-end-of-bigword.ref | 5++++-
Mvis/motions/prev-end-of-word.in | 5++++-
Mvis/motions/prev-end-of-word.keys | 5++++-
Mvis/motions/prev-end-of-word.ref | 5++++-
Mvis/motions/prev-start-of-bigword.in | 5++++-
Mvis/motions/prev-start-of-bigword.keys | 5++++-
Mvis/motions/prev-start-of-bigword.ref | 5++++-
Mvis/motions/prev-start-of-word.in | 5++++-
Mvis/motions/prev-start-of-word.keys | 5++++-
Mvis/motions/prev-start-of-word.ref | 5++++-
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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 _