aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meen-tests.el37
1 files changed, 37 insertions, 0 deletions
diff --git a/meen-tests.el b/meen-tests.el
new file mode 100644
index 0000000..62a8025
--- /dev/null
+++ b/meen-tests.el
@@ -0,0 +1,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: