From: Stefan Kangas Date: Mon, 10 Jun 2019 00:05:15 +0000 (-0700) Subject: Add tests for mail/uudecode.el X-Git-Tag: emacs-27.0.90~2635 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4503310cac33da4da74fd6376244da82c7134432;p=emacs.git Add tests for mail/uudecode.el * lisp/mail/uudecode.el: Remove redundant :group usage. * test/lisp/mail/uudecode-resources/uudecoded.txt, test/lisp/mail/uudecode-resources/uuencoded.txt, test/lisp/mail/uudecode-tests.el: New files. --- diff --git a/lisp/mail/uudecode.el b/lisp/mail/uudecode.el index 32e668baab3..57ca1ccc629 100644 --- a/lisp/mail/uudecode.el +++ b/lisp/mail/uudecode.el @@ -38,19 +38,16 @@ "Non-nil value should be a string that names a uu decoder. The program should expect to read uu data on its standard input and write the converted data to its standard output." - :type 'string - :group 'uudecode) + :type 'string) (defcustom uudecode-decoder-switches nil "List of command line flags passed to `uudecode-decoder-program'." - :group 'uudecode :type '(repeat string)) (defcustom uudecode-use-external (executable-find uudecode-decoder-program) "Use external uudecode program." :version "22.1" - :group 'uudecode :type 'boolean) (defconst uudecode-alphabet "\040-\140") diff --git a/test/lisp/mail/uudecode-resources/uudecoded.txt b/test/lisp/mail/uudecode-resources/uudecoded.txt new file mode 100644 index 00000000000..a6f75519a17 --- /dev/null +++ b/test/lisp/mail/uudecode-resources/uudecoded.txt @@ -0,0 +1,16 @@ +This is a test file encoded with uuencode. + +This file is part of GNU Emacs. + +GNU Emacs is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs. If not, see . diff --git a/test/lisp/mail/uudecode-resources/uuencoded.txt b/test/lisp/mail/uudecode-resources/uuencoded.txt new file mode 100644 index 00000000000..1d2f888bea3 --- /dev/null +++ b/test/lisp/mail/uudecode-resources/uuencoded.txt @@ -0,0 +1,19 @@ +begin 644 uudecoded.txt +M5&AI6]U(&-A;B!R961I0II="!U;F1E0IT:&4@1G)E92!3;V9T +M=V%R92!&;W5N9&%T:6]N+"!E:71H97(@=F5R6]U2!L871E