summaryrefslogtreecommitdiff
path: root/test/normal
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-01-24 10:45:12 +1100
committerMaxime Coste <mawww@kakoune.org>2018-01-24 10:45:12 +1100
commit9bf1f202d50fb123d9d526448ae345ec13453556 (patch)
treea4d39eb740706ad2520bd675fab06fc35c93598a /test/normal
parent220be30f02c8085258bd0e5e26fafe5ac88fad89 (diff)
Add unit tests for copy selections commands
Diffstat (limited to 'test/normal')
-rw-r--r--test/normal/copy-sel-above/cmd1
-rw-r--r--test/normal/copy-sel-above/in3
-rw-r--r--test/normal/copy-sel-above/selections1
-rw-r--r--test/normal/copy-sel-below-multi-line/cmd1
-rw-r--r--test/normal/copy-sel-below-multi-line/in6
-rw-r--r--test/normal/copy-sel-below-multi-line/selections4
-rw-r--r--test/normal/copy-sel-below/cmd1
-rw-r--r--test/normal/copy-sel-below/in3
-rw-r--r--test/normal/copy-sel-below/selections1
9 files changed, 21 insertions, 0 deletions
diff --git a/test/normal/copy-sel-above/cmd b/test/normal/copy-sel-above/cmd
new file mode 100644
index 00000000..6be727c1
--- /dev/null
+++ b/test/normal/copy-sel-above/cmd
@@ -0,0 +1 @@
+2<a-C>
diff --git a/test/normal/copy-sel-above/in b/test/normal/copy-sel-above/in
new file mode 100644
index 00000000..6cc5c481
--- /dev/null
+++ b/test/normal/copy-sel-above/in
@@ -0,0 +1,3 @@
+foo
+bar
+%(baz)
diff --git a/test/normal/copy-sel-above/selections b/test/normal/copy-sel-above/selections
new file mode 100644
index 00000000..49f37f3d
--- /dev/null
+++ b/test/normal/copy-sel-above/selections
@@ -0,0 +1 @@
+foo:bar:baz
diff --git a/test/normal/copy-sel-below-multi-line/cmd b/test/normal/copy-sel-below-multi-line/cmd
new file mode 100644
index 00000000..c98e9f85
--- /dev/null
+++ b/test/normal/copy-sel-below-multi-line/cmd
@@ -0,0 +1 @@
+2C
diff --git a/test/normal/copy-sel-below-multi-line/in b/test/normal/copy-sel-below-multi-line/in
new file mode 100644
index 00000000..b55b299e
--- /dev/null
+++ b/test/normal/copy-sel-below-multi-line/in
@@ -0,0 +1,6 @@
+%(foo
+bar)
+bar
+baz
+qux
+foo
diff --git a/test/normal/copy-sel-below-multi-line/selections b/test/normal/copy-sel-below-multi-line/selections
new file mode 100644
index 00000000..a5eb1024
--- /dev/null
+++ b/test/normal/copy-sel-below-multi-line/selections
@@ -0,0 +1,4 @@
+foo
+bar:bar
+baz:qux
+foo
diff --git a/test/normal/copy-sel-below/cmd b/test/normal/copy-sel-below/cmd
new file mode 100644
index 00000000..c98e9f85
--- /dev/null
+++ b/test/normal/copy-sel-below/cmd
@@ -0,0 +1 @@
+2C
diff --git a/test/normal/copy-sel-below/in b/test/normal/copy-sel-below/in
new file mode 100644
index 00000000..56190cb3
--- /dev/null
+++ b/test/normal/copy-sel-below/in
@@ -0,0 +1,3 @@
+%(foo)
+bar
+baz
diff --git a/test/normal/copy-sel-below/selections b/test/normal/copy-sel-below/selections
new file mode 100644
index 00000000..49f37f3d
--- /dev/null
+++ b/test/normal/copy-sel-below/selections
@@ -0,0 +1 @@
+foo:bar:baz