File: ticket-80433.t

package info (click to toggle)
libmime-tools-perl 5.515-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,612 kB
  • sloc: perl: 6,349; makefile: 8
file content (15 lines) | stat: -rw-r--r-- 332 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings;

use Test::More tests => 2;

# proper quoting of params and parsing them

use MIME::Field::ParamVal;

my $field = MIME::Field::ParamVal->parse(
    'inline; filename="f\oo\"bar\"b\az\\\\"'
);

is($field->param('filename'), 'foo"bar"baz\\');
is($field->stringify, 'inline; filename="foo\\"bar\\"baz\\\\"');