summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIgor Murzov <e-mail@date.by>2011-09-25 03:27:52 +0400
committerIgor Murzov <e-mail@date.by>2011-09-26 02:59:15 +0400
commite81223ac46c2e7692e97d469f3eefdcfb2cb9075 (patch)
tree3c3d93fcc5ab9194d69c154ed5a72b792ddc2c67 /test
parent0c06290764987c96418ec00f19fff7c2752fc075 (diff)
downloadbash-completion-e81223ac46c2e7692e97d469f3eefdcfb2cb9075.tar.gz
xgamma: New completion
Diffstat (limited to 'test')
-rw-r--r--test/completion/xgamma.exp1
-rw-r--r--test/lib/completions/xgamma.exp21
2 files changed, 22 insertions, 0 deletions
diff --git a/test/completion/xgamma.exp b/test/completion/xgamma.exp
new file mode 100644
index 00000000..706e74f9
--- /dev/null
+++ b/test/completion/xgamma.exp
@@ -0,0 +1 @@
+assert_source_completions xgamma
diff --git a/test/lib/completions/xgamma.exp b/test/lib/completions/xgamma.exp
new file mode 100644
index 00000000..c4c2228e
--- /dev/null
+++ b/test/lib/completions/xgamma.exp
@@ -0,0 +1,21 @@
+proc setup {} {
+ save_env
+}
+
+
+proc teardown {} {
+ assert_env_unmodified
+}
+
+
+setup
+
+
+set test "-gam<TAB> should complete \"-gamma\""
+assert_complete "-gamma" "xgamma -gam" $test
+
+
+sync_after_int
+
+
+teardown