[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/flx 7110df04e2 005/182: update tests
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/flx 7110df04e2 005/182: update tests |
Date: |
Tue, 13 Dec 2022 03:59:13 -0500 (EST) |
branch: elpa/flx
commit 7110df04e26858e6fa1b0fda744cee9bd381e7a8
Author: Le Wang <le.wang@agworld.com.au>
Commit: Le Wang <le.wang@agworld.com.au>
update tests
---
mflex-sort.el | 22 --------------------
tests/flx-test.el | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++----
2 files changed, 58 insertions(+), 26 deletions(-)
diff --git a/mflex-sort.el b/mflex-sort.el
deleted file mode 100644
index a4812605db..0000000000
--- a/mflex-sort.el
+++ /dev/null
@@ -1,22 +0,0 @@
-
-(defun mflex-all-combinations (list num)
- "let LENGTH = (length list)
-
-return all combinations of sequences of NUM elements from list.
-
-The length of the resulting list is ("
- (let ((length (length list))
- (head (car list))
- (rest (cdr list)))
- (cond ((= 0 num)
- (list nil))
- ((= length num)
- (list list))
- (t
- (append (mapcar
- (lambda (list)
- (cons head list))
- (mflex-all-combinations rest (1- num)))
- (mflex-all-combinations rest num))))))
-
-(provide 'mflex)
\ No newline at end of file
diff --git a/tests/flx-test.el b/tests/flx-test.el
index c4c849a65a..eace83870a 100644
--- a/tests/flx-test.el
+++ b/tests/flx-test.el
@@ -1,10 +1,61 @@
+;;; flx-test.el ---
+
+;; this file is not part of Emacs
+
+;; Copyright (C) 2013 Le Wang
+;; Author: Le Wang
+;; Maintainer: Le Wang
+;; Description:
+;; Author: Le Wang
+;; Maintainer: Le Wang
+
+;; Created: Tue Apr 16 23:32:32 2013 (+0800)
+;; Version: 0.1
+;; Last-Updated:
+;; By:
+;; Update #: 2
+;; URL:
+;; Keywords:
+;; Compatibility:
+
+;;; Installation:
+
+;;
+;;
+;;
+
+;;; Commentary:
+
+;;
+;;
+;;
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;
+;; This program is free software; you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License as
+;; published by the Free Software Foundation; either version 3, or
+;; (at your option) any later version.
+;;
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;; General Public License for more details.
+;;
+;; You should have received a copy of the GNU General Public License
+;; along with this program; see the file COPYING. If not, write to
+;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+;; Floor, Boston, MA 02110-1301, USA.
+;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+;;; Code:
+
+(eval-when-compile (require 'cl))
+
(require 'ert)
(require 'flx)
-
-;; for "every" function
-(require 'cl)
-
(ert-deftest flx-test-sanity ()
"sanity check."
(should (= 1 1)))
@@ -277,3 +328,6 @@ In this case, the match with more contiguous characters is
better."
(lower (flx-score "doc/command-t.txt" query
(flx-make-filename-cache))))
(should (> (car higher) (car lower))))))
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;; flx-test.el ends here
- [nongnu] elpa/flx 095f2e70f9 040/182: remove text property of selected item, (continued)
- [nongnu] elpa/flx 095f2e70f9 040/182: remove text property of selected item, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 50ff90fa08 017/182: add ido cache of narrowed list optimization, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 3208d8131e 043/182: make undecorate select item more thorough, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx fb1ded43df 044/182: cache cons cell lists too, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx d21ac098df 050/182: add option `flx-ido-use-faces', ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx f9bd16221b 063/182: update large collection guidelines, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 27bc47899a 075/182: Merge pull request #37 from artagnon/make, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx abe1a77c02 081/182: Merge pull request #38 from artagnon/cl-lib, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 9200e27309 083/182: use "flex" filtering when collection too large, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx c85273a6e8 009/182: fix helm demo typo, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 7110df04e2 005/182: update tests,
ELPA Syncer <=
- [nongnu] elpa/flx fabca711e9 013/182: fix typo, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx dc739574ad 011/182: add helm demo without flx, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 955772f489 029/182: optimize full-match boost, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 0519734c5b 030/182: consider runs of capitals to be same word, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx e80bc0dea4 018/182: more ido optimizations, refactor out flx-propertize, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx a31814e5ef 031/182: update README to say alpha, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 5ab18c3101 024/182: fix over manipulation of strings, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx fd10bf595d 025/182: fix typo, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx af1010e4ad 035/182: Reverting "fix `ido-merge-work-directories`", ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 11f3fad14f 041/182: get complete cache key more smartly, ELPA Syncer, 2022/12/13