From df19a448f6e05f73dddabcf6f6da142cedccbbd6 Mon Sep 17 00:00:00 2001 From: Jarno Mäkipää Date: Sat, 1 Feb 2020 11:03:38 +0200 Subject: vi: fix dw_last test, add more tests Fixed delete last word test. (script should not have \n since it is cursor down in vim) Added tests to check inserts Added tests to check yank and push --- tests/files/vi/ascii_dw_last.out | 2 +- tests/files/vi/ascii_insert_after_w.out | 4 ++++ tests/files/vi/ascii_insert_eof.out | 4 ++++ tests/files/vi/ascii_insert_multi.out | 4 ++++ tests/files/vi/ascii_insert_multi_yy_push.out | 5 +++++ tests/files/vi/ascii_insert_sof.out | 4 ++++ tests/files/vi/ascii_yw_push.out | 4 ++++ tests/files/vi/dw_last.in | 5 +---- tests/files/vi/insert_after_w.in | 2 ++ tests/files/vi/insert_eof.in | 2 ++ tests/files/vi/insert_multi.in | 2 ++ tests/files/vi/insert_multi_yy_push.in | 2 ++ tests/files/vi/insert_sof.in | 2 ++ tests/files/vi/yw_push.in | 3 +++ 14 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 tests/files/vi/ascii_insert_after_w.out create mode 100644 tests/files/vi/ascii_insert_eof.out create mode 100644 tests/files/vi/ascii_insert_multi.out create mode 100644 tests/files/vi/ascii_insert_multi_yy_push.out create mode 100644 tests/files/vi/ascii_insert_sof.out create mode 100644 tests/files/vi/ascii_yw_push.out create mode 100644 tests/files/vi/insert_after_w.in create mode 100644 tests/files/vi/insert_eof.in create mode 100644 tests/files/vi/insert_multi.in create mode 100644 tests/files/vi/insert_multi_yy_push.in create mode 100644 tests/files/vi/insert_sof.in create mode 100644 tests/files/vi/yw_push.in (limited to 'tests/files') diff --git a/tests/files/vi/ascii_dw_last.out b/tests/files/vi/ascii_dw_last.out index ee9f73ba..7a965051 100644 --- a/tests/files/vi/ascii_dw_last.out +++ b/tests/files/vi/ascii_dw_last.out @@ -1,4 +1,4 @@ abc def hij klm nop qrs -tuv wxy z +tuv wxy diff --git a/tests/files/vi/ascii_insert_after_w.out b/tests/files/vi/ascii_insert_after_w.out new file mode 100644 index 00000000..88886fc7 --- /dev/null +++ b/tests/files/vi/ascii_insert_after_w.out @@ -0,0 +1,4 @@ +abc hellodef hij +klm nop qrs +tuv wxy z + diff --git a/tests/files/vi/ascii_insert_eof.out b/tests/files/vi/ascii_insert_eof.out new file mode 100644 index 00000000..deb55c1d --- /dev/null +++ b/tests/files/vi/ascii_insert_eof.out @@ -0,0 +1,4 @@ +abc def hij +klm nop qrs +tuv wxy z +hello diff --git a/tests/files/vi/ascii_insert_multi.out b/tests/files/vi/ascii_insert_multi.out new file mode 100644 index 00000000..85591656 --- /dev/null +++ b/tests/files/vi/ascii_insert_multi.out @@ -0,0 +1,4 @@ +abcdef abc def hij +klm nop qrs +tuv wxy z + diff --git a/tests/files/vi/ascii_insert_multi_yy_push.out b/tests/files/vi/ascii_insert_multi_yy_push.out new file mode 100644 index 00000000..6e01b0b2 --- /dev/null +++ b/tests/files/vi/ascii_insert_multi_yy_push.out @@ -0,0 +1,5 @@ +abcdef abc def hij +klm nop qrs +abcdef abc def hij +tuv wxy z + diff --git a/tests/files/vi/ascii_insert_sof.out b/tests/files/vi/ascii_insert_sof.out new file mode 100644 index 00000000..9eca6509 --- /dev/null +++ b/tests/files/vi/ascii_insert_sof.out @@ -0,0 +1,4 @@ +helloabc def hij +klm nop qrs +tuv wxy z + diff --git a/tests/files/vi/ascii_yw_push.out b/tests/files/vi/ascii_yw_push.out new file mode 100644 index 00000000..435531a6 --- /dev/null +++ b/tests/files/vi/ascii_yw_push.out @@ -0,0 +1,4 @@ +abc def hijdef +klm nop qrs +tuv wxy z + diff --git a/tests/files/vi/dw_last.in b/tests/files/vi/dw_last.in index dc69492f..76495036 100644 --- a/tests/files/vi/dw_last.in +++ b/tests/files/vi/dw_last.in @@ -1,6 +1,3 @@ -G -$ -b -dw +G$bdw :wq diff --git a/tests/files/vi/insert_after_w.in b/tests/files/vi/insert_after_w.in new file mode 100644 index 00000000..232b631e --- /dev/null +++ b/tests/files/vi/insert_after_w.in @@ -0,0 +1,2 @@ +wihello +:wq diff --git a/tests/files/vi/insert_eof.in b/tests/files/vi/insert_eof.in new file mode 100644 index 00000000..b2e18d3c --- /dev/null +++ b/tests/files/vi/insert_eof.in @@ -0,0 +1,2 @@ +G$ihello +:wq diff --git a/tests/files/vi/insert_multi.in b/tests/files/vi/insert_multi.in new file mode 100644 index 00000000..cd6a4239 --- /dev/null +++ b/tests/files/vi/insert_multi.in @@ -0,0 +1,2 @@ +iab icd ief :wq + diff --git a/tests/files/vi/insert_multi_yy_push.in b/tests/files/vi/insert_multi_yy_push.in new file mode 100644 index 00000000..65134bd8 --- /dev/null +++ b/tests/files/vi/insert_multi_yy_push.in @@ -0,0 +1,2 @@ +iab icd ief yyjp:wq + diff --git a/tests/files/vi/insert_sof.in b/tests/files/vi/insert_sof.in new file mode 100644 index 00000000..b91b2c1b --- /dev/null +++ b/tests/files/vi/insert_sof.in @@ -0,0 +1,2 @@ +ihello +:wq diff --git a/tests/files/vi/yw_push.in b/tests/files/vi/yw_push.in new file mode 100644 index 00000000..a653ec32 --- /dev/null +++ b/tests/files/vi/yw_push.in @@ -0,0 +1,3 @@ +wyw2ep +:wq + -- cgit v1.2.3