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

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

[elpa] master 4e9aaec 092/184: ivy-test: Fix tests using file names on W


From: Oleh Krehel
Subject: [elpa] master 4e9aaec 092/184: ivy-test: Fix tests using file names on Windows
Date: Wed, 16 Oct 2019 13:14:57 -0400 (EDT)

branch: master
commit 4e9aaec5d7a0798bb553238ca94beb17060b91e4
Author: Nathan Moreau <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy-test: Fix tests using file names on Windows
    
    Fixes #2217
---
 ivy-test.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/ivy-test.el b/ivy-test.el
index cc6450d..e72c2c8 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -953,24 +953,24 @@ will bring the behavior in line with the newer Emacsen."
                        :failed
                      :passed)
   (should
-   (equal "/tmp/"
+   (equal (expand-file-name "/tmp/")
           (ivy-with
            '(read-directory-name "cd: " "/tmp")
            "RET")))
   (should
-   (equal "/tmp"
+   (equal (expand-file-name "/tmp")
           (ivy-with
            '(read-directory-name "cd: ")
            "C-M-j"
            :dir "/tmp")))
   (should
-   (equal "/tmp/"
+   (equal (expand-file-name "/tmp/")
           (ivy-with
            '(read-directory-name "cd: ")
            "tmp C-j C-M-j"
            :dir "/")))
   (should
-   (equal "/"
+   (equal (expand-file-name "/")
           (ivy-with
            '(read-directory-name "cd: ")
            "DEL C-M-j"
@@ -1049,7 +1049,7 @@ a buffer visiting a file."
        nil nil)
      "C-M-j"
      :dir "/tmp/non-existant-dir/")
-    "/tmp/non-existant-dir/")))
+    (expand-file-name "/tmp/non-existant-dir/"))))
 
 (ert-deftest ivy-starts-with-dotslash ()
   (should (ivy--starts-with-dotslash "./test1"))



reply via email to

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