]> git.donarmstrong.com Git - perltidy.git/commitdiff
added -xci test case
authorSteve Hancock <perltidy@users.sourceforge.net>
Tue, 10 Nov 2020 23:54:43 +0000 (15:54 -0800)
committerSteve Hancock <perltidy@users.sourceforge.net>
Tue, 10 Nov 2020 23:54:43 +0000 (15:54 -0800)
t/snippets/expect/xci.def
t/snippets/expect/xci.xci1
t/snippets/expect/xci.xci2
t/snippets/xci.in
t/snippets22.t

index cde75b91f837ec3eb1f9a2872585c43b88ec8733..43c95ad5b7dac941821c6f5de23aaa599b21298a 100644 (file)
@@ -20,3 +20,13 @@ my $otherHashRef =
     }
   }
   : undef;
+
+my @globlist = ( grep { defined } @opt{qw( l q S t )} )
+  ? do {
+    local *DIR;
+    opendir DIR, './' or die "can't opendir './': $!";
+    my @a = grep { not /^\.+$/ } readdir DIR;
+    closedir DIR;
+    @a;
+  }
+  : ();
index 6550b9af4d8158ace58dd738ad6a55df6f291cbc..1619865753aad0b6426f67f43b8801b876dc2689 100644 (file)
@@ -20,3 +20,13 @@ my $otherHashRef =
       }
   }
   : undef;
+
+my @globlist = ( grep { defined } @opt{qw( l q S t )} )
+  ? do {
+      local *DIR;
+      opendir DIR, './' or die "can't opendir './': $!";
+      my @a = grep { not /^\.+$/ } readdir DIR;
+      closedir DIR;
+      @a;
+  }
+  : ();
index 24c19b636b0bc24dd707526397418effc6143dac..27df61364c995737a0809cea277d486668615f49 100644 (file)
@@ -18,3 +18,13 @@ my $otherHashRef
         }
     }
     : undef;
+
+my @globlist = ( grep {defined} @opt{qw( l q S t )} )
+    ? do {
+        local *DIR;
+        opendir DIR, './' or die "can't opendir './': $!";
+        my @a = grep { not /^\.+$/ } readdir DIR;
+        closedir DIR;
+        @a;
+    }
+    : ();
index a51e55efbb273a870ccbc6f244cfddba50b907a5..d4502f4b7973bec15bdfba48e641db073cd11f3b 100644 (file)
@@ -20,3 +20,13 @@ my $otherHashRef =
  }
  }
  : undef;
+
+my @globlist = ( grep { defined } @opt{qw( l q S t )} )
+  ? do {
+    local *DIR;
+    opendir DIR, './' or die "can't opendir './': $!";
+    my @a = grep { not /^\.+$/ } readdir DIR;
+    closedir DIR;
+    @a;
+  }
+  : ();
index 73414883fdc759e172c6791b6a403944be3fc3fe..0ef67a3d147c3c589cd005d0f9c4c1a48fd7963e 100644 (file)
@@ -225,6 +225,16 @@ my $otherHashRef =
  }
  }
  : undef;
+
+my @globlist = ( grep { defined } @opt{qw( l q S t )} )
+  ? do {
+    local *DIR;
+    opendir DIR, './' or die "can't opendir './': $!";
+    my @a = grep { not /^\.+$/ } readdir DIR;
+    closedir DIR;
+    @a;
+  }
+  : ();
 ----------
     };
 
@@ -418,6 +428,16 @@ my $otherHashRef =
     }
   }
   : undef;
+
+my @globlist = ( grep { defined } @opt{qw( l q S t )} )
+  ? do {
+    local *DIR;
+    opendir DIR, './' or die "can't opendir './': $!";
+    my @a = grep { not /^\.+$/ } readdir DIR;
+    closedir DIR;
+    @a;
+  }
+  : ();
 #8...........
         },
 
@@ -447,6 +467,16 @@ my $otherHashRef =
       }
   }
   : undef;
+
+my @globlist = ( grep { defined } @opt{qw( l q S t )} )
+  ? do {
+      local *DIR;
+      opendir DIR, './' or die "can't opendir './': $!";
+      my @a = grep { not /^\.+$/ } readdir DIR;
+      closedir DIR;
+      @a;
+  }
+  : ();
 #9...........
         },
 
@@ -474,6 +504,16 @@ my $otherHashRef
         }
     }
     : undef;
+
+my @globlist = ( grep {defined} @opt{qw( l q S t )} )
+    ? do {
+        local *DIR;
+        opendir DIR, './' or die "can't opendir './': $!";
+        my @a = grep { not /^\.+$/ } readdir DIR;
+        closedir DIR;
+        @a;
+    }
+    : ();
 #10...........
         },