]> code.delx.au - gnu-emacs-elpa/blobdiff - ivy-test.el
Make ivy--regex work with "[^ ]"
[gnu-emacs-elpa] / ivy-test.el
index a654ad62e8f9578c5e00a4e980477b48dc883b9e..5e388d3dbf8fcf79e22300de749be2ffeaa8a450 100644 (file)
                  '("Who are" "the Brittons?")))
   (should (equal (ivy--split "We're  all  Britons and   I   am your   king.")
                  '("We're all Britons"
-                  "and  I  am"
-                   "your  king."))))
+                   "and  I  am"
+                   "your  king.")))
+  (should (equal (ivy--split "^[^ ]") '("^[^ ]")))
+  (should (equal (ivy--split "^[^ ] bar") '("^[^ ]" "bar"))))
 
 (ert-deftest ivy--regex ()
   (should (equal (ivy--regex