From 9bf1f202d50fb123d9d526448ae345ec13453556 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 24 Jan 2018 10:45:12 +1100 Subject: [PATCH] Add unit tests for copy selections commands --- test/normal/copy-sel-above/cmd | 1 + test/normal/copy-sel-above/in | 3 +++ test/normal/copy-sel-above/selections | 1 + test/normal/copy-sel-below-multi-line/cmd | 1 + test/normal/copy-sel-below-multi-line/in | 6 ++++++ test/normal/copy-sel-below-multi-line/selections | 4 ++++ test/normal/copy-sel-below/cmd | 1 + test/normal/copy-sel-below/in | 3 +++ test/normal/copy-sel-below/selections | 1 + 9 files changed, 21 insertions(+) create mode 100644 test/normal/copy-sel-above/cmd create mode 100644 test/normal/copy-sel-above/in create mode 100644 test/normal/copy-sel-above/selections create mode 100644 test/normal/copy-sel-below-multi-line/cmd create mode 100644 test/normal/copy-sel-below-multi-line/in create mode 100644 test/normal/copy-sel-below-multi-line/selections create mode 100644 test/normal/copy-sel-below/cmd create mode 100644 test/normal/copy-sel-below/in create mode 100644 test/normal/copy-sel-below/selections 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 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