my ($tests, $subtests);
BEGIN {
- $tests = 8;
+ $tests = 13;
$subtests = 3;
}
-use Test::More tests => $tests + $subtests * 14;
+use Test::More tests => $tests + $subtests * 21;
use Perl::Critic::TestUtils qw/pcritique_with_violations/;
----
[ 'new', 'X', 1, 9 ], [ 'new', 'X', 2, 9 ]
####
+my $x = new
+ X;
+----
+[ 'new', 'X', 1, 9 ]
+####
+my $x = new
+ X new
+ X;
+----
+[ 'new', 'X', 1, 9 ], [ 'new', 'X', 2, 4 ]
+####
+my $x = new new;
+----
+[ 'new', 'new', 1, 9 ]
+####
our $obj;
my $x = new $obj;
----
my $y = new $obj;
----
[ 'new', '$obj', 2, 9 ], [ 'new', '$obj', 3, 9 ]
-
+####
+our $obj;
+my $x = new
+ $obj;
+----
+[ 'new', '$obj', 2, 9 ]
+####
+our $obj;
+my $x = new
+ $obj new
+ $obj;
+----
+[ 'new', '$obj', 2, 9 ], [ 'new', '$obj', 3, 7 ]