diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2024-05-21 19:53:22 -0600 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2024-05-21 19:53:22 -0600 |
| commit | b7074021b7bfb0932b889b9560dd22df31cef818 (patch) | |
| tree | 0295b18de8fb8ea5289cbda95675687ae06025ff /test/vim/operators | |
| parent | b7f8018a00be930e3f2b864949aec1f91291309c (diff) | |
| parent | efafa3c178268a4149fc3e432bc1174a013c16de (diff) | |
| download | vis-b7074021b7bfb0932b889b9560dd22df31cef818.tar.gz vis-b7074021b7bfb0932b889b9560dd22df31cef818.tar.xz | |
Merge vis-tests into test directory
Going forward all tests should be submitted here directly.
Diffstat (limited to 'test/vim/operators')
30 files changed, 122 insertions, 0 deletions
diff --git a/test/vim/operators/change/change.in b/test/vim/operators/change/change.in new file mode 100644 index 0000000..5459db4 --- /dev/null +++ b/test/vim/operators/change/change.in @@ -0,0 +1,3 @@ +hello world +hello world +Bye! diff --git a/test/vim/operators/change/change.keys b/test/vim/operators/change/change.keys new file mode 100644 index 0000000..db3a7ac --- /dev/null +++ b/test/vim/operators/change/change.keys @@ -0,0 +1,3 @@ +cwfoo<Escape>w. +2G +ccbar bar<Escape>. diff --git a/test/vim/operators/delete/delete.in b/test/vim/operators/delete/delete.in new file mode 100644 index 0000000..d9bc611 --- /dev/null +++ b/test/vim/operators/delete/delete.in @@ -0,0 +1,5 @@ +one two +three four +five six +seven eigth +nine ten diff --git a/test/vim/operators/delete/delete.keys b/test/vim/operators/delete/delete.keys new file mode 100644 index 0000000..a627146 --- /dev/null +++ b/test/vim/operators/delete/delete.keys @@ -0,0 +1,2 @@ +/two<Enter> +djd2j diff --git a/test/vim/operators/insert/append.in b/test/vim/operators/insert/append.in new file mode 100644 index 0000000..11f11f9 --- /dev/null +++ b/test/vim/operators/insert/append.in @@ -0,0 +1 @@ +0123456789 diff --git a/test/vim/operators/insert/append.keys b/test/vim/operators/insert/append.keys new file mode 100644 index 0000000..069994f --- /dev/null +++ b/test/vim/operators/insert/append.keys @@ -0,0 +1,3 @@ +4a#<Escape> +f9 +2. diff --git a/test/vim/operators/insert/insert.in b/test/vim/operators/insert/insert.in new file mode 100644 index 0000000..11f11f9 --- /dev/null +++ b/test/vim/operators/insert/insert.in @@ -0,0 +1 @@ +0123456789 diff --git a/test/vim/operators/insert/insert.keys b/test/vim/operators/insert/insert.keys new file mode 100644 index 0000000..efef222 --- /dev/null +++ b/test/vim/operators/insert/insert.keys @@ -0,0 +1,3 @@ +4i#<Escape> +f9 +2. diff --git a/test/vim/operators/join/count.in b/test/vim/operators/join/count.in new file mode 100644 index 0000000..8a1218a --- /dev/null +++ b/test/vim/operators/join/count.in @@ -0,0 +1,5 @@ +1 +2 +3 +4 +5 diff --git a/test/vim/operators/join/count.keys b/test/vim/operators/join/count.keys new file mode 100644 index 0000000..2476f31 --- /dev/null +++ b/test/vim/operators/join/count.keys @@ -0,0 +1 @@ +3J diff --git a/test/vim/operators/join/empty.in b/test/vim/operators/join/empty.in new file mode 100644 index 0000000..e3c0074 --- /dev/null +++ b/test/vim/operators/join/empty.in @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/test/vim/operators/join/empty.keys b/test/vim/operators/join/empty.keys new file mode 100644 index 0000000..56d5cc4 --- /dev/null +++ b/test/vim/operators/join/empty.keys @@ -0,0 +1,6 @@ +j +J +J +J +J +J
\ No newline at end of file diff --git a/test/vim/operators/join/visual-line.in b/test/vim/operators/join/visual-line.in new file mode 100644 index 0000000..1f2114a --- /dev/null +++ b/test/vim/operators/join/visual-line.in @@ -0,0 +1,9 @@ +1 +2 +3 +4 +5 +6 +7 +9 +10 diff --git a/test/vim/operators/join/visual-line.keys b/test/vim/operators/join/visual-line.keys new file mode 100644 index 0000000..eab6f6c --- /dev/null +++ b/test/vim/operators/join/visual-line.keys @@ -0,0 +1,3 @@ +jV2jJ +/6<Enter> +VJ
\ No newline at end of file diff --git a/test/vim/operators/join/visual.in b/test/vim/operators/join/visual.in new file mode 100644 index 0000000..18a208e --- /dev/null +++ b/test/vim/operators/join/visual.in @@ -0,0 +1,9 @@ +first +second +third +fourth +fifth +sixth +seventh +eighth +ninth diff --git a/test/vim/operators/join/visual.keys b/test/vim/operators/join/visual.keys new file mode 100644 index 0000000..f8295ee --- /dev/null +++ b/test/vim/operators/join/visual.keys @@ -0,0 +1,4 @@ +/c<Enter> +v2gjJ +/x<Enter> +v2gjgJ diff --git a/test/vim/operators/join/whitespace.in b/test/vim/operators/join/whitespace.in new file mode 100644 index 0000000..bcb94fb --- /dev/null +++ b/test/vim/operators/join/whitespace.in @@ -0,0 +1,11 @@ + +non empty preceding line + join + +non empty preceding line white trailing white space + join + +empty preceding line + + join + diff --git a/test/vim/operators/join/whitespace.keys b/test/vim/operators/join/whitespace.keys new file mode 100644 index 0000000..74a030a --- /dev/null +++ b/test/vim/operators/join/whitespace.keys @@ -0,0 +1,6 @@ +/join<Enter> +k$J +2n +k$J +n +k$J diff --git a/test/vim/operators/openline/openline.in b/test/vim/operators/openline/openline.in new file mode 100644 index 0000000..b698034 --- /dev/null +++ b/test/vim/operators/openline/openline.in @@ -0,0 +1,3 @@ +=== +--- +=== diff --git a/test/vim/operators/openline/openline.keys b/test/vim/operators/openline/openline.keys new file mode 100644 index 0000000..4be0fe0 --- /dev/null +++ b/test/vim/operators/openline/openline.keys @@ -0,0 +1,8 @@ +2Obefore<Escape> +2/===<Enter> +3. +gg +n +2oafter<Escape> +n +3. diff --git a/test/vim/operators/put/put.in b/test/vim/operators/put/put.in new file mode 100644 index 0000000..bd46cf2 --- /dev/null +++ b/test/vim/operators/put/put.in @@ -0,0 +1 @@ +one two diff --git a/test/vim/operators/put/put.keys b/test/vim/operators/put/put.keys new file mode 100644 index 0000000..5c20233 --- /dev/null +++ b/test/vim/operators/put/put.keys @@ -0,0 +1 @@ +ywPw3Pw. diff --git a/test/vim/operators/put/visual.in b/test/vim/operators/put/visual.in new file mode 100644 index 0000000..912aa1d --- /dev/null +++ b/test/vim/operators/put/visual.in @@ -0,0 +1,2 @@ +longword +short diff --git a/test/vim/operators/put/visual.keys b/test/vim/operators/put/visual.keys new file mode 100644 index 0000000..b30aa85 --- /dev/null +++ b/test/vim/operators/put/visual.keys @@ -0,0 +1,3 @@ +yejvep +a<Enter>newline +<Escape> diff --git a/test/vim/operators/replace/replace.in b/test/vim/operators/replace/replace.in new file mode 100644 index 0000000..0b61652 --- /dev/null +++ b/test/vim/operators/replace/replace.in @@ -0,0 +1,5 @@ +int foo() { + /* --- --- */ + return 42; + /* --- --- */ +} diff --git a/test/vim/operators/replace/replace.keys b/test/vim/operators/replace/replace.keys new file mode 100644 index 0000000..ef8b57f --- /dev/null +++ b/test/vim/operators/replace/replace.keys @@ -0,0 +1,10 @@ +t{r<Enter> /* replace space with new line */ +/---<Enter> +3r= /* replace --- with === */ +n /* advance to next match */ +. /* repeat */ +r<Escape> /* cancel, should not alter text */ +n /* advance to next match */ +v2e /* select something in visual mode */ +r<Escape> /* cancel, should not alter text */ +r= /* replace selection */ diff --git a/test/vim/operators/shift/shift.in b/test/vim/operators/shift/shift.in new file mode 100644 index 0000000..9c54329 --- /dev/null +++ b/test/vim/operators/shift/shift.in @@ -0,0 +1,2 @@ +one two + one two diff --git a/test/vim/operators/shift/shift.keys b/test/vim/operators/shift/shift.keys new file mode 100644 index 0000000..b157798 --- /dev/null +++ b/test/vim/operators/shift/shift.keys @@ -0,0 +1 @@ +>>j<< diff --git a/test/vim/operators/yank/yank.in b/test/vim/operators/yank/yank.in new file mode 100644 index 0000000..bd46cf2 --- /dev/null +++ b/test/vim/operators/yank/yank.in @@ -0,0 +1 @@ +one two diff --git a/test/vim/operators/yank/yank.keys b/test/vim/operators/yank/yank.keys new file mode 100644 index 0000000..9098f4e --- /dev/null +++ b/test/vim/operators/yank/yank.keys @@ -0,0 +1 @@ +y$P0yyp.. |
