diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/editfns-tests.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/src/editfns-tests.el b/test/src/editfns-tests.el index 70dc9372fad..283a642dd97 100644 --- a/test/src/editfns-tests.el +++ b/test/src/editfns-tests.el | |||
| @@ -136,6 +136,12 @@ | |||
| 136 | (ert-deftest format-c-float () | 136 | (ert-deftest format-c-float () |
| 137 | (should-error (format "%c" 0.5))) | 137 | (should-error (format "%c" 0.5))) |
| 138 | 138 | ||
| 139 | ;;; Test for Bug#29609. | ||
| 140 | (ert-deftest format-sharp-0-x () | ||
| 141 | (should (string-equal (format "%#08x" #x10) "0x000010")) | ||
| 142 | (should (string-equal (format "%#05X" #x10) "0X010")) | ||
| 143 | (should (string-equal (format "%#04x" 0) "0000"))) | ||
| 144 | |||
| 139 | ;;; Check format-time-string with various TZ settings. | 145 | ;;; Check format-time-string with various TZ settings. |
| 140 | ;;; Use only POSIX-compatible TZ values, since the tests should work | 146 | ;;; Use only POSIX-compatible TZ values, since the tests should work |
| 141 | ;;; even if tzdb is not in use. | 147 | ;;; even if tzdb is not in use. |