aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-09-11 01:24:47 +0530
committerArun Isaac2022-09-11 01:24:47 +0530
commit44e6dc04c0b2e58d53249e94622613598e4cfaf4 (patch)
treee0ba92450c49b38d9650609803c18088d0bfcf76
parent1d3a0ac2ce8464d8addd269762c20c41c3bb8775 (diff)
downloadmeen-44e6dc04c0b2e58d53249e94622613598e4cfaf4.tar.gz
meen-44e6dc04c0b2e58d53249e94622613598e4cfaf4.tar.lz
meen-44e6dc04c0b2e58d53249e94622613598e4cfaf4.zip
Add tests.v0.1.0
* meen-tests.el: New file.
-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: