Explorar el Código

Test ido-restrict-to-matches with prefix arg

Ryan C. Thompson hace 7 años
padre
commit
2bb3d77be4
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      tests/test-ido-completing-read+.el

+ 10 - 0
tests/test-ido-completing-read+.el

@@ -544,11 +544,21 @@ also accept a quoted list for the sake of convenience."
              (ido-completing-read+
               "Pick: " collection nil t nil nil (car collection)))
            :to-equal "bbb-eee-ggg")
+          (expect
+           (with-simulated-input "eee C-SPC aaa C-u C-SPC ccc C-u C-SPC ggg RET"
+             (ido-completing-read+
+              "Pick: " collection nil t nil nil (car collection)))
+           :to-equal "bbb-eee-ggg")
           ;; Now test the same with a dynamic collection
           (expect
            (with-simulated-input "eee C-SPC bbb C-SPC ggg RET"
              (ido-completing-read+
               "Pick: " (collection-as-function collection) nil t nil nil (car collection)))
+           :to-equal "bbb-eee-ggg")
+          (expect
+           (with-simulated-input "eee C-SPC aaa C-u C-SPC ccc C-u C-SPC ggg RET"
+             (ido-completing-read+
+              "Pick: " (collection-as-function collection) nil t nil nil (car collection)))
            :to-equal "bbb-eee-ggg")))
 
       (describe "with flx-ido-mode"