diff options
| author | Stefan Kangas | 2022-12-27 17:24:18 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2022-12-27 18:10:50 +0100 |
| commit | fb0ff54eb45ba9fc939d07740c895ed2ef58c406 (patch) | |
| tree | 98e95c4ae75c8595ba5ce24779681e2c31695464 /test | |
| parent | 2ffe1494e16381cfc7fec95a6a0879f268df3e95 (diff) | |
| download | emacs-fb0ff54eb45ba9fc939d07740c895ed2ef58c406.tar.gz emacs-fb0ff54eb45ba9fc939d07740c895ed2ef58c406.zip | |
Make elide-head-headers-to-hide more forgiving
* lisp/elide-head.el (elide-head-headers-to-hide): Make regexp
more forgiving of line breaks and comment characters in address.
* test/lisp/elide-head-tests.el (gpl3-6): New test.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/elide-head-tests.el | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/test/lisp/elide-head-tests.el b/test/lisp/elide-head-tests.el index 429ef266572..293fb0dc09d 100644 --- a/test/lisp/elide-head-tests.el +++ b/test/lisp/elide-head-tests.el | |||
| @@ -180,6 +180,90 @@ | |||
| 180 | ;; along with Mentor. If not, see <https://www.gnu.org/licenses>. | 180 | ;; along with Mentor. If not, see <https://www.gnu.org/licenses>. |
| 181 | " "Mentor is distributed in the hope that") | 181 | " "Mentor is distributed in the hope that") |
| 182 | 182 | ||
| 183 | ;; from GnuTLS [has a line break in snail mail address] | ||
| 184 | (elide-head--add-test gpl3-6 "\ | ||
| 185 | # This file is part of GnuTLS. | ||
| 186 | # | ||
| 187 | # This program is free software; you can redistribute it and/or modify | ||
| 188 | # it under the terms of the GNU General Public License as published by | ||
| 189 | # the Free Software Foundation; either version 3 of the License, or | ||
| 190 | # (at your option) any later version. | ||
| 191 | # | ||
| 192 | # This program is distributed in the hope that it will be useful, but | ||
| 193 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 194 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 195 | # General Public License for more details. | ||
| 196 | # | ||
| 197 | # You should have received a copy of the GNU General Public License | ||
| 198 | # along with this program; if not, write to the Free Software | ||
| 199 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 | ||
| 200 | # USA | ||
| 201 | " "This program is distributed in the hope that") | ||
| 202 | |||
| 203 | ;; from GnuTLS [has a different line break in snail mail address] | ||
| 204 | (elide-head--add-test gpl3-7 "\ | ||
| 205 | # This file is part of GnuTLS. | ||
| 206 | # | ||
| 207 | # The GnuTLS is free software; you can redistribute it and/or | ||
| 208 | # modify it under the terms of the GNU Lesser General Public License | ||
| 209 | # as published by the Free Software Foundation; either version 2.1 of | ||
| 210 | # the License, or (at your option) any later version. | ||
| 211 | # | ||
| 212 | # The GnuTLS is distributed in the hope that it will be | ||
| 213 | # useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
| 214 | # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 215 | # Lesser General Public License for more details. | ||
| 216 | # | ||
| 217 | # You should have received a copy of the GNU Lesser General Public | ||
| 218 | # License along with GnuTLS; if not, write to the Free | ||
| 219 | # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
| 220 | # MA 02110-1301, USA | ||
| 221 | " "The GnuTLS is distributed in the hope that") | ||
| 222 | |||
| 223 | ;; from GnuTLS [has a typo in the 02111-1301 part] | ||
| 224 | (elide-head--add-test gpl3-8 "\ | ||
| 225 | /* nettle, low-level cryptographics library | ||
| 226 | * | ||
| 227 | * Copyright (C) 2002 Niels Möller | ||
| 228 | * Copyright (C) 2014 Red Hat | ||
| 229 | *\s\s | ||
| 230 | * The nettle library is free software; you can redistribute it and/or modify | ||
| 231 | * it under the terms of the GNU Lesser General Public License as published by | ||
| 232 | * the Free Software Foundation; either version 2.1 of the License, or (at your | ||
| 233 | * option) any later version. | ||
| 234 | *\s | ||
| 235 | * The nettle library is distributed in the hope that it will be useful, but | ||
| 236 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
| 237 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public | ||
| 238 | * License for more details. | ||
| 239 | *\s | ||
| 240 | * You should have received a copy of the GNU Lesser General Public License | ||
| 241 | * along with the nettle library; see the file COPYING.LIB. If not, write to | ||
| 242 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
| 243 | * MA 02111-1301, USA. | ||
| 244 | */ | ||
| 245 | " "The nettle library is distributed in the hope that") | ||
| 246 | |||
| 247 | ;; from GnuTLS-EXTRA [has a different line break in snail mail address] | ||
| 248 | (elide-head--add-test gpl3-9 "\ | ||
| 249 | # This file is part of GnuTLS-EXTRA. | ||
| 250 | # | ||
| 251 | # GnuTLS-extra is free software; you can redistribute it and/or | ||
| 252 | # modify it under the terms of the GNU General Public License as | ||
| 253 | # published by the Free Software Foundation; either version 3 of the | ||
| 254 | # License, or (at your option) any later version. | ||
| 255 | # | ||
| 256 | # GnuTLS-extra is distributed in the hope that it will be useful, but | ||
| 257 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 258 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 259 | # General Public License for more details. | ||
| 260 | # | ||
| 261 | # You should have received a copy of the GNU General Public License | ||
| 262 | # along with GnuTLS-EXTRA; if not, write to the Free Software | ||
| 263 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
| 264 | # 02110-1301, USA. | ||
| 265 | " "GnuTLS-extra is distributed in the hope that") | ||
| 266 | |||
| 183 | 267 | ||
| 184 | ;;; GPLv2 | 268 | ;;; GPLv2 |
| 185 | 269 | ||