summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-05-11 16:12:22 +0200
committerMaciej Barć <xgqt@gentoo.org>2023-05-11 17:34:30 +0200
commit647de87454028e0c3df1ad2ae952de2824458458 (patch)
treead79680b480ec331dcb84779cd4d54b4ddedbeb6 /app-emacs/ts/files
parentapp-emacs/elpher: bump to 3.5.0 (diff)
downloadgentoo-647de87454028e0c3df1ad2ae952de2824458458.tar.gz
gentoo-647de87454028e0c3df1ad2ae952de2824458458.tar.bz2
gentoo-647de87454028e0c3df1ad2ae952de2824458458.zip
app-emacs/ts: new package; add 0.3
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/ts/files')
-rw-r--r--app-emacs/ts/files/50ts-gentoo.el1
-rw-r--r--app-emacs/ts/files/ts-0.3-test.patch13
2 files changed, 14 insertions, 0 deletions
diff --git a/app-emacs/ts/files/50ts-gentoo.el b/app-emacs/ts/files/50ts-gentoo.el
new file mode 100644
index 000000000000..431f7e90ae73
--- /dev/null
+++ b/app-emacs/ts/files/50ts-gentoo.el
@@ -0,0 +1 @@
+(add-to-list 'load-path "@SITELISP@")
diff --git a/app-emacs/ts/files/ts-0.3-test.patch b/app-emacs/ts/files/ts-0.3-test.patch
new file mode 100644
index 000000000000..0b473d24873f
--- /dev/null
+++ b/app-emacs/ts/files/ts-0.3-test.patch
@@ -0,0 +1,13 @@
+--- a/test/test.el
++++ b/test/test.el
+@@ -259,10 +259,8 @@
+ ;; machine's local timezone affecting results.
+ (let ((ts (make-ts :year 2019 :month 7 :day 27 :hour 20 :minute 48 :second 08 :tz-offset "-0400")))
+ ;; Following the pattern in the function:
+- (should (equal (ts-format ts) "2019-07-27 20:48:08 -0400"))
+ (should (equal (ts-format "%Y" ts) "2019"))
+ (should (ts-format "%Y"))
+- (should (equal (ts-format nil ts) "2019-07-27 20:48:08 -0400"))
+ (should (ts-format)))
+ (let ((ts (make-ts :year 2019 :month 7 :day 27 :hour 19 :minute 48 :second 08 :tz-offset "-0500")))
+ ;; Following the pattern in the function: