diff options
author | Richard Hansen <rhansen@rhansen.org> | 2022-05-29 18:09:08 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-06-01 22:24:05 -0400 |
commit | 5255fa452f338c2ae97fa1ade70b396513bc6e9b (patch) | |
tree | 76a9cd2053a15459e463bfffe0370b7b996f092d /test/lisp/emacs-lisp | |
parent | 30ec4a7347b2944818c6fc469ae871374ce7caa4 (diff) | |
download | emacs-5255fa452f338c2ae97fa1ade70b396513bc6e9b.tar.gz emacs-5255fa452f338c2ae97fa1ade70b396513bc6e9b.tar.bz2 emacs-5255fa452f338c2ae97fa1ade70b396513bc6e9b.zip |
bindat (strz): Fix wrong-type-argument error when unpacking
* lisp/emacs-lisp/bindat.el (strz): Fix (wrong-type-argument
number-or-marker-p nil) error when unpacking a strz with
unspecified (variable) length.
* test/lisp/emacs-lisp/bindat-tests.el (strz): Mark test as passing.
Diffstat (limited to 'test/lisp/emacs-lisp')
-rw-r--r-- | test/lisp/emacs-lisp/bindat-tests.el | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/lisp/emacs-lisp/bindat-tests.el b/test/lisp/emacs-lisp/bindat-tests.el index cb7b6fe1c20..b3850f14f17 100644 --- a/test/lisp/emacs-lisp/bindat-tests.el +++ b/test/lisp/emacs-lisp/bindat-tests.el @@ -199,7 +199,6 @@ (should (equal (bindat-pack spec "abc") "abc\0"))) (ert-deftest bindat-test--strz-varlen-unpack () - :expected-result :failed ;; There is no test for unpacking a string without a null ;; terminator because such packed strings cannot be produced from ;; the spec (packing "a" should produce "a\0", not "a"). |