From 4503310cac33da4da74fd6376244da82c7134432 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 9 Jun 2019 17:05:15 -0700 Subject: [PATCH] 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. --- lisp/mail/uudecode.el | 5 +- .../mail/uudecode-resources/uudecoded.txt | 16 ++++ .../mail/uudecode-resources/uuencoded.txt | 19 ++++ test/lisp/mail/uudecode-tests.el | 89 +++++++++++++++++++ 4 files changed, 125 insertions(+), 4 deletions(-) create mode 100644 test/lisp/mail/uudecode-resources/uudecoded.txt create mode 100644 test/lisp/mail/uudecode-resources/uuencoded.txt create mode 100644 test/lisp/mail/uudecode-tests.el 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