diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2020-04-29 09:52:34 +0200 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2020-04-29 09:52:34 +0200 |
commit | 702d9d86f2a7ba9df693a1140565aa111135f1bb (patch) | |
tree | 502d47c46bf263d2ff4f1f8bdf53fa7ec6e4b017 /lisp/emacs-lisp | |
parent | c8115e88f180bf33154dcc9de9767bba797af827 (diff) | |
download | emacs-702d9d86f2a7ba9df693a1140565aa111135f1bb.tar.gz emacs-702d9d86f2a7ba9df693a1140565aa111135f1bb.tar.bz2 emacs-702d9d86f2a7ba9df693a1140565aa111135f1bb.zip |
Add new tests to bindat-tests.el
* test/lisp/emacs-lisp/bindat-tests.el (bindat-test-format-vector)
(bindat-test-vector-to-dec, bindat-test-vector-to-hex)
(bindat-test-ip-to-string): New tests.
* lisp/emacs-lisp/bindat.el (bindat-vector-to-hex): Fix typo.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/bindat.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bindat.el b/lisp/emacs-lisp/bindat.el index b5d99e34518..d168c255121 100644 --- a/lisp/emacs-lisp/bindat.el +++ b/lisp/emacs-lisp/bindat.el @@ -632,7 +632,7 @@ If optional second arg SEP is a string, use that as separator." (bindat-format-vector vect "%d" (if (stringp sep) sep "."))) (defun bindat-vector-to-hex (vect &optional sep) - "Format vector VECT in hex format separated by dots. + "Format vector VECT in hex format separated by colons. If optional second arg SEP is a string, use that as separator." (bindat-format-vector vect "%02x" (if (stringp sep) sep ":"))) |