Skip Menu |

This queue is for tickets about the Test-Expr CPAN distribution.

Report information
The Basics
Id: 130919
Status: resolved
Priority: 0/
Queue: Test-Expr

People
Owner: Nobody in particular
Requestors: li.hansen.inc [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Line numbers reported in test
Date: Wed, 6 Nov 2019 07:58:11 -0500
To: bug-Test-Expr [...] rt.cpan.org
From: "F. Li" <li.hansen.inc [...] gmail.com>
Hi, Dr. Conway, Test::Expr is wonderful! ... however it reports success and failures on the wrong line. Modifying # Build the test code... qq{ { $test_setup if ($test_expr) { Test::More::ok(1, $desc); } else { fail($desc); @diagnostics diag q{}; } } }; to my $testcode=qq{ { $test_setup if ($test_expr) { Test::More::ok(1, $desc); } else { fail($desc); @diagnostics diag q{}; } } }; $testcode=~ s{\n *}{ }gsm; return $testcode; fixes this. Thank you again for Test::Expr (and all those too many to mention modules)!
Subject: Re: [rt.cpan.org #130919] Line numbers reported in test
Date: Sat, 9 Nov 2019 04:13:09 +0000
To: bug-Test-Expr [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Many thanks (especially for the suggested fix!) Patch now applied and the new version uploaded to CPAN. Much appreciated! Damian