File: 100.set-cookie.t

package info (click to toggle)
libcgi-simple-perl 1.282-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 604 kB
  • sloc: perl: 1,885; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 238 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use Test::More tests => 1;
use CGI::Simple;

my $cgi = CGI::Simple->new;

like(
  $cgi->header(
    '-content-type', 'foo/fum', '-set-cookie', [ 'a=b', 'b=c' ]
  ),
  qr/Set-cookie: a=b\s+Set-cookie: b=c/si,
  'Set-Cookie'
);