summaryrefslogtreecommitdiff
path: root/test/vis/structural-regex/addresses
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/vis/structural-regex/addresses
parentb7f8018a00be930e3f2b864949aec1f91291309c (diff)
parentefafa3c178268a4149fc3e432bc1174a013c16de (diff)
Merge vis-tests into test directory
Going forward all tests should be submitted here directly.
Diffstat (limited to 'test/vis/structural-regex/addresses')
-rw-r--r--test/vis/structural-regex/addresses/marks.in1
-rw-r--r--test/vis/structural-regex/addresses/marks.keys6
-rw-r--r--test/vis/structural-regex/addresses/marks.ref1
-rw-r--r--test/vis/structural-regex/addresses/round-down.in16
-rw-r--r--test/vis/structural-regex/addresses/round-down.keys5
-rw-r--r--test/vis/structural-regex/addresses/round-down.ref18
-rw-r--r--test/vis/structural-regex/addresses/round-up.in16
-rw-r--r--test/vis/structural-regex/addresses/round-up.keys5
-rw-r--r--test/vis/structural-regex/addresses/round-up.ref18
9 files changed, 86 insertions, 0 deletions
diff --git a/test/vis/structural-regex/addresses/marks.in b/test/vis/structural-regex/addresses/marks.in
new file mode 100644
index 0000000..2fe6575
--- /dev/null
+++ b/test/vis/structural-regex/addresses/marks.in
@@ -0,0 +1 @@
+The quick brown fox jumps over the lazy dog.
diff --git a/test/vis/structural-regex/addresses/marks.keys b/test/vis/structural-regex/addresses/marks.keys
new file mode 100644
index 0000000..5c6641a
--- /dev/null
+++ b/test/vis/structural-regex/addresses/marks.keys
@@ -0,0 +1,6 @@
+:'a,'b { i/>/ a/</ }<Enter>
+fq
+'am
+el
+'bm
+:<Up><Enter>
diff --git a/test/vis/structural-regex/addresses/marks.ref b/test/vis/structural-regex/addresses/marks.ref
new file mode 100644
index 0000000..df68a3b
--- /dev/null
+++ b/test/vis/structural-regex/addresses/marks.ref
@@ -0,0 +1 @@
+The >quick< brown fox jumps over the lazy dog.
diff --git a/test/vis/structural-regex/addresses/round-down.in b/test/vis/structural-regex/addresses/round-down.in
new file mode 100644
index 0000000..72a8eff
--- /dev/null
+++ b/test/vis/structural-regex/addresses/round-down.in
@@ -0,0 +1,16 @@
+static const KeyBinding bindings_basic[] = {
+ { "<C-z>", ACTION(EDITOR_SUSPEND) },
+ { "<Down>", ACTION(CURSOR_LINE_DOWN) },
+ { "<End>", ACTION(CURSOR_LINE_END) },
+ { "<Home>", ACTION(CURSOR_LINE_BEGIN) },
+ { "<Left>", ACTION(CURSOR_CHAR_PREV) },
+ { "<PageDown>", ACTION(WINDOW_PAGE_DOWN) },
+ { "<PageUp>", ACTION(WINDOW_PAGE_UP) },
+ { "<Right>", ACTION(CURSOR_CHAR_NEXT) },
+ { "<S-Left>", ACTION(CURSOR_LONGWORD_START_PREV) },
+ { "<S-PageDown>", ACTION(WINDOW_HALFPAGE_DOWN) },
+ { "<S-PageUp>", ACTION(WINDOW_HALFPAGE_UP) },
+ { "<S-Right>", ACTION(CURSOR_LONGWORD_START_NEXT) },
+ { "<Up>", ACTION(CURSOR_LINE_UP) },
+ { 0 /* empty last element, array terminator */ },
+};
diff --git a/test/vis/structural-regex/addresses/round-down.keys b/test/vis/structural-regex/addresses/round-down.keys
new file mode 100644
index 0000000..b605515
--- /dev/null
+++ b/test/vis/structural-regex/addresses/round-down.keys
@@ -0,0 +1,5 @@
+:/Left/,/Right/<Enter>
+:{ i/|/ a/|/ }<Enter><Escape><Escape>
+:0/Left/,0/Right/<Enter>
+:-0+,+0-<Enter>
+:{ i/>>\n/ a/<<\n/ }<Enter>
diff --git a/test/vis/structural-regex/addresses/round-down.ref b/test/vis/structural-regex/addresses/round-down.ref
new file mode 100644
index 0000000..7cc0254
--- /dev/null
+++ b/test/vis/structural-regex/addresses/round-down.ref
@@ -0,0 +1,18 @@
+static const KeyBinding bindings_basic[] = {
+ { "<C-z>", ACTION(EDITOR_SUSPEND) },
+ { "<Down>", ACTION(CURSOR_LINE_DOWN) },
+ { "<End>", ACTION(CURSOR_LINE_END) },
+ { "<Home>", ACTION(CURSOR_LINE_BEGIN) },
+ { "<|Left>", ACTION(CURSOR_CHAR_PREV) },
+>>
+ { "<PageDown>", ACTION(WINDOW_PAGE_DOWN) },
+ { "<PageUp>", ACTION(WINDOW_PAGE_UP) },
+<<
+ { "<Right|>", ACTION(CURSOR_CHAR_NEXT) },
+ { "<S-Left>", ACTION(CURSOR_LONGWORD_START_PREV) },
+ { "<S-PageDown>", ACTION(WINDOW_HALFPAGE_DOWN) },
+ { "<S-PageUp>", ACTION(WINDOW_HALFPAGE_UP) },
+ { "<S-Right>", ACTION(CURSOR_LONGWORD_START_NEXT) },
+ { "<Up>", ACTION(CURSOR_LINE_UP) },
+ { 0 /* empty last element, array terminator */ },
+};
diff --git a/test/vis/structural-regex/addresses/round-up.in b/test/vis/structural-regex/addresses/round-up.in
new file mode 100644
index 0000000..72a8eff
--- /dev/null
+++ b/test/vis/structural-regex/addresses/round-up.in
@@ -0,0 +1,16 @@
+static const KeyBinding bindings_basic[] = {
+ { "<C-z>", ACTION(EDITOR_SUSPEND) },
+ { "<Down>", ACTION(CURSOR_LINE_DOWN) },
+ { "<End>", ACTION(CURSOR_LINE_END) },
+ { "<Home>", ACTION(CURSOR_LINE_BEGIN) },
+ { "<Left>", ACTION(CURSOR_CHAR_PREV) },
+ { "<PageDown>", ACTION(WINDOW_PAGE_DOWN) },
+ { "<PageUp>", ACTION(WINDOW_PAGE_UP) },
+ { "<Right>", ACTION(CURSOR_CHAR_NEXT) },
+ { "<S-Left>", ACTION(CURSOR_LONGWORD_START_PREV) },
+ { "<S-PageDown>", ACTION(WINDOW_HALFPAGE_DOWN) },
+ { "<S-PageUp>", ACTION(WINDOW_HALFPAGE_UP) },
+ { "<S-Right>", ACTION(CURSOR_LONGWORD_START_NEXT) },
+ { "<Up>", ACTION(CURSOR_LINE_UP) },
+ { 0 /* empty last element, array terminator */ },
+};
diff --git a/test/vis/structural-regex/addresses/round-up.keys b/test/vis/structural-regex/addresses/round-up.keys
new file mode 100644
index 0000000..0acac9c
--- /dev/null
+++ b/test/vis/structural-regex/addresses/round-up.keys
@@ -0,0 +1,5 @@
+:/Left/,/Right/<Enter>
+:{ i/|/ a/|/ }<Enter><Escape><Escape>
+:0/Left/,0/Right/<Enter>
+:-0,+0<Enter>
+:{ i/>>\n/ a/<<\n/ }<Enter>
diff --git a/test/vis/structural-regex/addresses/round-up.ref b/test/vis/structural-regex/addresses/round-up.ref
new file mode 100644
index 0000000..2b9dba3
--- /dev/null
+++ b/test/vis/structural-regex/addresses/round-up.ref
@@ -0,0 +1,18 @@
+static const KeyBinding bindings_basic[] = {
+ { "<C-z>", ACTION(EDITOR_SUSPEND) },
+ { "<Down>", ACTION(CURSOR_LINE_DOWN) },
+ { "<End>", ACTION(CURSOR_LINE_END) },
+ { "<Home>", ACTION(CURSOR_LINE_BEGIN) },
+>>
+ { "<|Left>", ACTION(CURSOR_CHAR_PREV) },
+ { "<PageDown>", ACTION(WINDOW_PAGE_DOWN) },
+ { "<PageUp>", ACTION(WINDOW_PAGE_UP) },
+ { "<Right|>", ACTION(CURSOR_CHAR_NEXT) },
+<<
+ { "<S-Left>", ACTION(CURSOR_LONGWORD_START_PREV) },
+ { "<S-PageDown>", ACTION(WINDOW_HALFPAGE_DOWN) },
+ { "<S-PageUp>", ACTION(WINDOW_HALFPAGE_UP) },
+ { "<S-Right>", ACTION(CURSOR_LONGWORD_START_NEXT) },
+ { "<Up>", ACTION(CURSOR_LINE_UP) },
+ { 0 /* empty last element, array terminator */ },
+};