about summary refs log tree commit diff
path: root/Test/X02zlevi.ztst
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2013-02-12 10:55:32 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2013-02-12 10:55:32 +0000
commitb6544d1ef3312cc133da648d290d2ec2866c277d (patch)
tree4c20a1edb307b3dd687d1941ef3cf48a13c47dbd /Test/X02zlevi.ztst
parent0a8c28b3d655b52bc600e052db1da43bf4a98bae (diff)
downloadzsh-b6544d1ef3312cc133da648d290d2ec2866c277d.tar.gz
zsh-b6544d1ef3312cc133da648d290d2ec2866c277d.tar.xz
zsh-b6544d1ef3312cc133da648d290d2ec2866c277d.zip
31041: add support for testing line editor widgets from the test suite
Diffstat (limited to 'Test/X02zlevi.ztst')
-rw-r--r--Test/X02zlevi.ztst20
1 files changed, 20 insertions, 0 deletions
diff --git a/Test/X02zlevi.ztst b/Test/X02zlevi.ztst
new file mode 100644
index 000000000..d4a125f21
--- /dev/null
+++ b/Test/X02zlevi.ztst
@@ -0,0 +1,20 @@
+# Tests of the vi mode of ZLE
+
+%prep
+  if ( zmodload -i zsh/zpty ) >/dev/null 2>&1; then
+    . $ZTST_srcdir/comptest
+    comptestinit -v -z $ZTST_testdir/../Src/zsh
+  else
+    ZTST_unimplemented="the zsh/zpty module is not available"
+  fi
+
+%test
+
+  zletest $'one two\ebmt3|`tx``'
+0:setting mark and returning to original position
+>BUFFER: one wo
+>CURSOR: 2
+
+%clean
+
+  zmodload -ui zsh/zpty