aboutsummaryrefslogtreecommitdiff
path: root/meen-tests.el
blob: 62a8025bc9984e21a008b502d47794a85458c8b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
;;; meen.el --- Hide clocks replacing them with fish -*- lexical-binding: t -*-


;; This file is part of meen.

;; meen 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.

;; meen 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 meen.  If not, see <http://www.gnu.org/licenses/>.

;;; Commentary:
;;
;; meen is a minor mode to hide clocks replacing them with fish icons.
;; It is useful to escape the tyranny of the clock and live a life not
;; knowing the precise artificial time.
;;
;; Usage:
;;
;; Tests for meen mode

(require 'ert)
(require 'meen)

(ert-deftest match-hour-minute ()
  (let ((test-string "12:23"))
    (should (and (string-match meen-regexp test-string)
                 (match-string meen-regexp-group test-string)))))

;;; Code: