mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
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.
This commit is contained in:
parent
c8115e88f1
commit
702d9d86f2
2 changed files with 17 additions and 1 deletions
|
|
@ -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 ":")))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue