Fix opening custom ID links with percent escaped syntax
[org-mode/org-tableheadings.git] / testing / lisp / test-org-bbdb.el
blobce93d3cd8f31f87db703c9996c2f5548cce7b335
1 ;;; test-org-bbdb.el --- tests for org-bbdb.el -*- lexical-binding: t; -*-
3 ;; Copyright (C) 2018 Marco Wahl
5 ;; Author: <marcowahlsoft@gmail.com>
6 ;; Keywords: calendar
8 ;; This program is free software; you can redistribute it and/or modify
9 ;; it under the terms of the GNU General Public License as published by
10 ;; the Free Software Foundation, either version 3 of the License, or
11 ;; (at your option) any later version.
13 ;; This program is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;; GNU General Public License for more details.
18 ;; You should have received a copy of the GNU General Public License
19 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
21 ;;; Commentary:
23 ;; Test some of org-bbdb.el.
25 ;;; Code:
27 (require 'org-bbdb)
29 (ert-deftest test-org-bbdb-anniv-extract-date ()
30 (should (equal nil (org-bbdb-anniv-extract-date "foo")))
31 (should (equal '(9 22 2018) (org-bbdb-anniv-extract-date "2018-09-22")))
32 (should (equal '(9 22 nil) (org-bbdb-anniv-extract-date "09-22"))))
34 (provide 'test-org-bbdb)
36 ;;; test-org-bbdb.el ends here