(declare-function ibuffer-format-qualifier "ibuf-ext" (qualifier))
(declare-function ibuffer-unary-operand "ibuf-ext" (filter))
-(ert-deftest ibuffer-autoload ()
+(ert-deftest ibuffer-0autoload () ; sort first
"Tests to see whether ibuffer has been autoloaded"
(skip-unless (not (featurep 'ibuf-ext)))
(should
(ert-deftest ibuffer-save-filters ()
"Tests that `ibuffer-save-filters' saves in the proper format."
- (skip-unless (featurep 'ibuf-ext))
+ (require 'ibuf-ext)
(let ((ibuffer-save-with-custom nil)
(ibuffer-saved-filters nil)
(test1 '((mode . org-mode)
;; Tests
(ert-deftest ibuffer-filter-inclusion-1 ()
"Tests inclusion using basic filter combinators with a single buffer."
- (skip-unless (featurep 'ibuf-ext))
+ (require 'ibuf-ext)
(unwind-protect
(let ((buf
(funcall create-file-buffer "ibuf-test-1" :size 100
(ert-deftest ibuffer-filter-inclusion-2 ()
"Tests inclusion of basic filters in combination on a single buffer."
- (skip-unless (featurep 'ibuf-ext))
+ (require 'ibuf-ext)
(unwind-protect
(let ((buf
(funcall create-file-buffer "ibuf-test-2" :size 200
(ert-deftest ibuffer-filter-inclusion-3 ()
"Tests inclusion with filename filters on specified buffers."
- (skip-unless (featurep 'ibuf-ext))
+ (require 'ibuf-ext)
(unwind-protect
(let* ((bufA
(funcall create-file-buffer "ibuf-test-3.a" :size 50
(ert-deftest ibuffer-filter-inclusion-4 ()
"Tests inclusion with various filters on a single buffer."
- (skip-unless (featurep 'ibuf-ext))
+ (require 'ibuf-ext)
(unwind-protect
(let ((buf
(funcall create-file-buffer "ibuf-test-4"
(ert-deftest ibuffer-filter-inclusion-5 ()
"Tests inclusion with various filters on a single buffer."
- (skip-unless (featurep 'ibuf-ext))
+ (require 'ibuf-ext)
(unwind-protect
(let ((buf
(funcall create-non-file-buffer "ibuf-test-5.el"
(ert-deftest ibuffer-filter-inclusion-6 ()
"Tests inclusion using saved filters and DeMorgan's laws."
- (skip-unless (featurep 'ibuf-ext))
+ (require 'ibuf-ext)
(unwind-protect
(let ((buf
(funcall create-non-file-buffer "*ibuf-test-6*" :size 65
(ert-deftest ibuffer-filter-inclusion-7 ()
"Tests inclusion with various filters on a single buffer."
- (skip-unless (featurep 'ibuf-ext))
+ (require 'ibuf-ext)
(unwind-protect
(let ((buf
(funcall create-non-file-buffer "ibuf-test-7"
(ert-deftest ibuffer-filter-inclusion-8 ()
"Tests inclusion with various filters."
- (skip-unless (featurep 'ibuf-ext))
+ (require 'ibuf-ext)
(unwind-protect
(let ((bufA
(funcall create-non-file-buffer "ibuf-test-8a"
;; Tests
(ert-deftest ibuffer-decompose-filter ()
"Tests `ibuffer-decompose-filter' for and, or, not, and saved."
- (skip-unless (featurep 'ibuf-ext))
+ (require 'ibuf-ext)
(unwind-protect
(let ((ibuf (funcall get-test-ibuffer)))
(with-current-buffer ibuf
(ert-deftest ibuffer-and-filter ()
"Tests `ibuffer-and-filter' in an Ibuffer buffer."
- (skip-unless (featurep 'ibuf-ext))
+ (require 'ibuf-ext)
(unwind-protect
(let ((ibuf (funcall get-test-ibuffer)))
(with-current-buffer ibuf
(ert-deftest ibuffer-or-filter ()
"Tests `ibuffer-or-filter' in an Ibuffer buffer."
- (skip-unless (featurep 'ibuf-ext))
+ (require 'ibuf-ext)
(unwind-protect
(let ((ibuf (funcall get-test-ibuffer)))
(with-current-buffer ibuf
(ert-deftest ibuffer-format-qualifier ()
"Tests string recommendation of filter from `ibuffer-format-qualifier'."
- (skip-unless (featurep 'ibuf-ext))
+ (require 'ibuf-ext)
(let ((test1 '(mode . org-mode))
(test2 '(size-lt . 100))
(test3 '(derived-mode . prog-mode))
(ert-deftest ibuffer-unary-operand ()
"Tests `ibuffer-unary-operand': (not cell) or (not . cell) -> cell."
- (skip-unless (featurep 'ibuf-ext))
+ (require 'ibuf-ext)
(should (equal (ibuffer-unary-operand '(not . (mode "foo")))
'(mode "foo")))
(should (equal (ibuffer-unary-operand '(not (mode "foo")))