[Bash-completion-commits] [SCM] bash-completion branch, master,	updated. b74997084ef4b62124a4b56017dd55d082a62e49
    Freddy Vulto (none) 
    freddy at rebase.
       
    Tue Jun  9 21:53:15 UTC 2009
    
    
  
The following commit has been merged in the master branch:
commit b74997084ef4b62124a4b56017dd55d082a62e49
Author: Freddy Vulto <freddy at rebase.(none)>
Date:   Tue Jun 9 23:52:47 2009 +0200
    Added unit test for _get_cword
diff --git a/test/unit/_get_cword.exp b/test/unit/_get_cword.exp
new file mode 100644
index 0000000..f5264d7
--- /dev/null
+++ b/test/unit/_get_cword.exp
@@ -0,0 +1,25 @@
+proc setup {} {
+    save_env
+}; # setup()
+
+
+proc teardown {} {
+    assert_env_unmodified
+}; # teardown()
+
+
+setup
+
+
+set test "_get_cword should run without errors"
+assert_bash_exec {_get_cword > /dev/null} $test
+
+
+sync_after_int
+
+
+# See also ./lib/completions/alias.exp.  Here `_get_cword' is actually tested
+# by moving the cursor left into the current word.
+
+
+teardown
-- 
bash-completion
    
    
More information about the Bash-completion-commits
mailing list