emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/bash-completion c8ddd11ec3 113/313: Fix tests after "Make


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion c8ddd11ec3 113/313: Fix tests after "Make bash-completion.el work
Date: Sat, 3 Dec 2022 10:59:21 -0500 (EST)

branch: elpa/bash-completion
commit c8ddd11ec36bb92b2bcd1a4ca5e9ae549d298f89
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>

    Fix tests after "Make bash-completion.el work
    under emacs trunk."
---
 bash-completion_test.el | 34 +++++++++++++++++++++++-----------
 1 file changed, 23 insertions(+), 11 deletions(-)

diff --git a/bash-completion_test.el b/bash-completion_test.el
index 2c797459b9..c829bda400 100644
--- a/bash-completion_test.el
+++ b/bash-completion_test.el
@@ -188,7 +188,8 @@ cases. That's why they need to be enabled manually.")
       '((line . "a hello world")
        (point . 13)
        (cword . 2)
-       (words . ("a" "hello" "world"))))
+       (words . ("a" "hello" "world"))
+       (stub-start . 9)))
 
      ("bash-completion-parse-line cursor in the middle of a word"
       (sz-testutils-with-buffer
@@ -197,7 +198,8 @@ cases. That's why they need to be enabled manually.")
       '((line . "a hello wo")
        (point . 10)
        (cword . 2)
-       (words . ("a" "hello" "wo"))))
+       (words . ("a" "hello" "wo"))
+       (stub-start . 9)))
 
      ("bash-completion-parse-line cursor at the beginning"
       (sz-testutils-with-buffer
@@ -206,7 +208,9 @@ cases. That's why they need to be enabled manually.")
       '((line . "")
        (point . 0)
        (cword . 0)
-       (words . (""))))
+       (words . (""))
+       (stub-start . 2)
+       ))
 
      ("bash-completion-parse-line cursor in the middle"
       (sz-testutils-with-buffer
@@ -215,7 +219,8 @@ cases. That's why they need to be enabled manually.")
       '((line . "a hello ")
        (point . 8)
        (cword . 2)
-       (words . ("a" "hello" ""))))
+       (words . ("a" "hello" ""))
+       (stub-start . 9)))
 
      ("bash-completion-parse-line cursor at end"
       (sz-testutils-with-buffer
@@ -224,7 +229,8 @@ cases. That's why they need to be enabled manually.")
       '((line . "a hello world b c")
        (point . 17)
        (cword . 4)
-       (words . ("a" "hello" "world" "b" "c"))))
+       (words . ("a" "hello" "world" "b" "c"))
+       (stub-start . 17)))
 
      ("bash-completion-parse-line complex multi-command line"
       (sz-testutils-with-buffer
@@ -233,7 +239,8 @@ cases. That's why they need to be enabled manually.")
       '((line . "make -")
        (point . 6)
        (cword . 1)
-       (words . ("make" "-"))))
+       (words . ("make" "-"))
+       (stub-start . 27)))
 
 
      ("bash-completion-parse-line pipe"
@@ -243,7 +250,8 @@ cases. That's why they need to be enabled manually.")
       '((line . "sort -")
        (point . 6)
        (cword . 1)
-       (words . ("sort" "-"))))
+       (words . ("sort" "-"))
+       (stub-start . 20)))
 
      ("bash-completion-parse-line escaped semicolon"
       (sz-testutils-with-buffer
@@ -252,7 +260,8 @@ cases. That's why they need to be enabled manually.")
       '((line . "find -name '*.txt' -exec echo {} ';' -")
        (point . 38)
        (cword . 7)
-       (words . ("find" "-name" "*.txt" "-exec" "echo" "{}" ";" "-"))))
+       (words . ("find" "-name" "*.txt" "-exec" "echo" "{}" ";" "-"))
+       (stub-start . 38)))
 
      ("bash-completion-parse-line at var assignment"
       (sz-testutils-with-buffer
@@ -261,7 +270,8 @@ cases. That's why they need to be enabled manually.")
       '((line . "ZORG=t")
        (point . 6)
        (cword . 0)
-       (words . ("ZORG=t"))))
+       (words . ("ZORG=t"))
+       (stub-start . 19)))
 
      ("bash-completion-parse-line cursor after end"
       (sz-testutils-with-buffer
@@ -270,7 +280,8 @@ cases. That's why they need to be enabled manually.")
       '((line . "a hello world b c ")
        (point . 18)
        (cword . 5)
-       (words . ("a" "hello" "world" "b" "c" ""))))
+       (words . ("a" "hello" "world" "b" "c" ""))
+       (stub-start . 19)))
 
      ("bash-completion-parse-line with escaped quote"
       (sz-testutils-with-buffer
@@ -279,7 +290,8 @@ cases. That's why they need to be enabled manually.")
       '((line . "cd /vcr/shows/Dexter\\'s")
        (point . 23)
        (cword . 1)
-       (words . ("cd" "/vcr/shows/Dexter's"))))
+       (words . ("cd" "/vcr/shows/Dexter's"))
+       (stub-start . 4)))
 
      ("bash-completion-add-to-alist garbage"
       (let ((bash-completion-alist nil))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]