File: header-case.t

package info (click to toggle)
libemail-simple-perl 2.218-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 336 kB
  • sloc: perl: 462; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 239 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
use v5.12.0;
use warnings;

use Test::More tests => 1;
use Email::Simple;

my $m = Email::Simple->new("Foo-Bar: Baz\n\ntest\n");
$m->header_set("Foo-bar", "quux");
is($m->as_string, "Foo-Bar: quux

test\n", "Only one header this time");