diff options
author | Stephen Gildea <stepheng+savannah@gildea.com> | 2019-09-22 20:27:53 -0700 |
---|---|---|
committer | Stephen Gildea <stepheng+savannah@gildea.com> | 2019-09-22 20:31:59 -0700 |
commit | a33cda168e35cb93cdf115f7d12765f590226601 (patch) | |
tree | 0f668f2163a47da41ad6cde6ce39659478176b5e /lib/open.c | |
parent | 4eac64fcf21fc54d562d9ac5903ed241c747372b (diff) | |
download | emacs-a33cda168e35cb93cdf115f7d12765f590226601.tar.gz emacs-a33cda168e35cb93cdf115f7d12765f590226601.tar.bz2 emacs-a33cda168e35cb93cdf115f7d12765f590226601.zip |
Expand time-stamp unit tests to cover all formatting options
* time-stamp-tests.el: Expand unit tests to cover all formatting options.
These tests validate time-stamp-pattern formatting that has existed
since at least Emacs 22 (released in 2007). The tests cover both
documented behavior and behavior implemented to support future migrations.
* time-stamp.el (time-stamp-string): Add a second argument (TIME) to
open a testing seam. Have the unit tests call this public function.
* time-stamp.el (time-stamp-string, time-stamp-string-preprocess):
Remove the second pass through time-string--format. (Previously both
functions called it.) It was used only to handle "%", but this is now
handled by having time-stamp-string-preprocess not double it.
Not doubling the "%" in time-stamp-string-preprocess fixes the padding
of "%2%", which was discovered by the new unit tests to be wrong.
Diffstat (limited to 'lib/open.c')
0 files changed, 0 insertions, 0 deletions