test-ol-bbdb.el 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. ;;; test-org-bbdb.el --- tests for org-bbdb.el -*- lexical-binding: t; -*-
  2. ;; Copyright (C) 2018, 2019 Marco Wahl
  3. ;; Author: <marcowahlsoft@gmail.com>
  4. ;; Keywords: calendar
  5. ;; This program is free software; you can redistribute it and/or modify
  6. ;; it under the terms of the GNU General Public License as published by
  7. ;; the Free Software Foundation, either version 3 of the License, or
  8. ;; (at your option) any later version.
  9. ;; This program is distributed in the hope that it will be useful,
  10. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ;; GNU General Public License for more details.
  13. ;; You should have received a copy of the GNU General Public License
  14. ;; along with this program. If not, see <https://www.gnu.org/licenses/>.
  15. ;;; Commentary:
  16. ;; Test some of org-bbdb.el.
  17. ;;; Code:
  18. (require 'ol-bbdb)
  19. (ert-deftest test-org-bbdb-anniv-extract-date ()
  20. (should (equal nil (org-bbdb-anniv-extract-date "foo")))
  21. (should (equal '(9 22 2018) (org-bbdb-anniv-extract-date "2018-09-22")))
  22. (should (equal '(9 22 nil) (org-bbdb-anniv-extract-date "09-22"))))
  23. (provide 'test-ol-bbdb)
  24. ;;; test-org-bbdb.el ends here