From 44e6dc04c0b2e58d53249e94622613598e4cfaf4 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 11 Sep 2022 01:24:47 +0530 Subject: Add tests. * meen-tests.el: New file. --- meen-tests.el | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 meen-tests.el (limited to 'meen-tests.el') 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 . + +;;; 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: -- cgit v1.2.3