]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove incorrect use of decode-coding-string
authorStefan Kangas <stefan@marxist.se>
Thu, 22 Oct 2020 18:32:32 +0000 (20:32 +0200)
committerStefan Kangas <stefan@marxist.se>
Thu, 22 Oct 2020 18:34:15 +0000 (20:34 +0200)
* test/lisp/emacs-lisp/bindat-tests.el
(bindat-test-pack/multibyte-string-fails)
(bindat-test-unpack/multibyte-string-fails): Don't use
decode-coding-string.
Problem pointed out by Stefan Monnier <monnier@iro.umontreal.ca>.

test/lisp/emacs-lisp/bindat-tests.el

index 0fb1955695d98f7ac308cd95306174dafae60519..842ef10bc578d5b966878b1811342353bf619351 100644 (file)
                        [192 168 1 100]))))))
 
 (ert-deftest bindat-test-pack/multibyte-string-fails ()
-  (should-error (bindat-pack nil nil (decode-coding-string "ö" 'utf-8))))
+  (should-error (bindat-pack nil nil "ö")))
 
 (ert-deftest bindat-test-unpack/multibyte-string-fails ()
-  (should-error (bindat-unpack nil (decode-coding-string "ö" 'utf-8))))
+  (should-error (bindat-unpack nil "ö")))
 
 (ert-deftest bindat-test-format-vector ()
   (should (equal (bindat-format-vector [1 2 3] "%d" "x" 2) "1x2"))