unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
From: Eric Wong <e@80x24.org>
To: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Cc: meta@public-inbox.org
Subject: Re: Failed tests on CentOS-7
Date: Thu, 10 May 2018 21:51:19 +0000	[thread overview]
Message-ID: <20180510215119.GA19307@dcvr> (raw)
In-Reply-To: <5486bce6-811b-d762-ad23-07be918f2d8a@linuxfoundation.org>

Konstantin Ryabitsev <konstantin@linuxfoundation.org> wrote:
> Hello:
> 
> Running "make test" I get the following failures:
> 
> t/content_id.t ......... 1/?
> #   Failed test 'content_id does not mutate From:'
> #   at t/content_id.t line 29.
> #          got: '"Quoted N'Ame" <foo@EXAMPLE.com>'
> #     expected: '"Quoted N\'Ame" <foo@EXAMPLE.com>'

> Anything I can do to help troubleshoot this? The modules were installed
> from CPAN per the INSTALL file.

Which versions of perl, Email::MIME, Email::MIME::Encodings, and
Email::Simple are you running?

Does s/header_str_set/header_set/ work around the problem?
(if so, I think it might be E::M::Encodings...)

The following should improve the readability of the failure
messages, I got the order of is() args backwards and q() can be
more readable in source than ''.

--- a/t/content_id.t
+++ b/t/content_id.t
@@ -23,10 +23,10 @@ my $reload = content_id(Email::MIME->new($mime->as_string));
 is($orig, $reload, 'content_id matches after serialization');
 
 foreach my $h (qw(From To Cc)) {
-	my $n = '"Quoted N\'Ame" <foo@EXAMPLE.com>';
+	my $n = q("Quoted N'Ame" <foo@EXAMPLE.com>);
 	$mime->header_str_set($h, "$n");
 	my $q = content_id($mime);
-	is($n, $mime->header($h), "content_id does not mutate $h:");
+	is($mime->header($h), $n, "content_id does not mutate $h:");
 	$mime->header_str_set($h, 'Quoted N\'Ame <foo@example.com>');
 	my $nq = content_id($mime);
 	is($nq, $q, "quotes ignored in $h:");

  reply	other threads:[~2018-05-10 21:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-10 21:12 Failed tests on CentOS-7 Konstantin Ryabitsev
2018-05-10 21:51 ` Eric Wong [this message]
2018-05-11 15:45   ` Konstantin Ryabitsev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://public-inbox.org/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180510215119.GA19307@dcvr \
    --to=e@80x24.org \
    --cc=konstantin@linuxfoundation.org \
    --cc=meta@public-inbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).