]> code.delx.au - gnu-emacs-elpa/commitdiff
Add 'packages/avy/' from commit '32003515c8efa2cf38b62c45499dae30bc7cacb8'
authorOleh Krehel <ohwoeowho@gmail.com>
Fri, 8 May 2015 13:34:46 +0000 (15:34 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Fri, 8 May 2015 13:34:46 +0000 (15:34 +0200)
git-subtree-dir: packages/avy
git-subtree-mainline: 74b34f2bbb929a1caf5cf753e59c54c3ccb74f50
git-subtree-split: 32003515c8efa2cf38b62c45499dae30bc7cacb8

1  2 
packages/avy/Makefile
packages/avy/README.md
packages/avy/avy-init.el
packages/avy/avy-jump.el
packages/avy/avy-test.el
packages/avy/avy.el

index 0000000000000000000000000000000000000000,e1551794f322973d621792247566711c188cd973..e1551794f322973d621792247566711c188cd973
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,01bf587def4fb6e35a2831189b03bc74bce70044..01bf587def4fb6e35a2831189b03bc74bce70044
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,37cf18e868a72d9042f29c75449afe150086a810..37cf18e868a72d9042f29c75449afe150086a810
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,d6bb52e797e476a218c0efc4faa9d7f8e6c3e705..d6bb52e797e476a218c0efc4faa9d7f8e6c3e705
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..339d8a06d536ad4f3565e2867a8fa83040fc759d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,68 @@@
++;;; avy-test.el --- Tests for avy
++
++;; Copyright (C) 2015  Free Software Foundation, Inc.
++
++;; Author: Oleh Krehel
++
++;; This file is part of GNU Emacs.
++
++;; GNU Emacs 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 of the License, or
++;; (at your option) any later version.
++
++;; GNU Emacs 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 GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
++
++;;; Commentary:
++;;
++
++;;; Code:
++
++(require 'ert)
++(require 'avy)
++
++(ert-deftest avy-subdiv ()
++  (should
++   (equal (avy-subdiv 5 4)
++          '(1 1 1 2)))
++  (should
++   (equal (avy-subdiv 10 4)
++          '(1 1 4 4)))
++  (should
++   (equal (avy-subdiv 16 4)
++          '(4 4 4 4)))
++  (should
++   (equal (avy-subdiv 17 4)
++          '(4 4 4 5)))
++  (should
++   (equal (avy-subdiv 27 4)
++          '(4 4 4 15)))
++  (should
++   (equal (avy-subdiv 50 4)
++          '(4 14 16 16)))
++  (should
++   (equal (avy-subdiv 65 4)
++          '(16 16 16 17))))
++
++(ert-deftest avy-tree ()
++  (should
++   (equal
++    (avy-tree '(0 1 2 3 4 5 6 7 8 9 10)
++              '(?a ?s ?d ?f ?g ?h ?j ?k ?l))
++    '((97 leaf . 0)
++      (115 leaf . 1)
++      (100 leaf . 2)
++      (102 leaf . 3)
++      (103 leaf . 4)
++      (104 leaf . 5)
++      (106 leaf . 6)
++      (107 leaf . 7)
++      (108 (97 leaf . 8)
++       (115 leaf . 9)
++       (100 leaf . 10))))))
index 0000000000000000000000000000000000000000,6a0dea7626e9b41c718fa310734ae7210e1096c9..6a0dea7626e9b41c718fa310734ae7210e1096c9
mode 000000,100644..100644
--- /dev/null
--- 2/avy.el