aboutsummaryrefslogtreecommitdiff
path: root/test/vim/operators/join
diff options
context:
space:
mode:
authorRandy Palamar <randy@rnpnr.xyz>2024-05-21 19:53:22 -0600
committerRandy Palamar <randy@rnpnr.xyz>2024-05-21 19:53:22 -0600
commitb7074021b7bfb0932b889b9560dd22df31cef818 (patch)
tree0295b18de8fb8ea5289cbda95675687ae06025ff /test/vim/operators/join
parentb7f8018a00be930e3f2b864949aec1f91291309c (diff)
parentefafa3c178268a4149fc3e432bc1174a013c16de (diff)
downloadvis-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/join')
-rw-r--r--test/vim/operators/join/count.in5
-rw-r--r--test/vim/operators/join/count.keys1
-rw-r--r--test/vim/operators/join/empty.in9
-rw-r--r--test/vim/operators/join/empty.keys6
-rw-r--r--test/vim/operators/join/visual-line.in9
-rw-r--r--test/vim/operators/join/visual-line.keys3
-rw-r--r--test/vim/operators/join/visual.in9
-rw-r--r--test/vim/operators/join/visual.keys4
-rw-r--r--test/vim/operators/join/whitespace.in11
-rw-r--r--test/vim/operators/join/whitespace.keys6
10 files changed, 63 insertions, 0 deletions
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