Commits

Shlomi Fish  committed 3a9628a

Got rid of $_ as a loop iterator.

  • Participants
  • Parent commits f40246b

Comments (0)

Files changed (1)

File t/43options.t

   base_uri
   gdome
 );
+
 # TEST:$old=8
 my %old = map { $_=> 1 } qw(
 recover
 
 {
   my $p = XML::LibXML->new(map { $_=>1 } @all);
-  for (@all) {
+  for my $opt (@all) {
     # TEST*$all
-    ok($p->get_option($_)==1, ' TODO : Add test name');
+    ok($p->get_option($opt)==1, ' TODO : Add test name');
     # TEST*$old
-    if ($old{$_})
+    if ($old{$opt})
     {
-        ok($p->$_()==1, ' TODO : Add test name') 
+        ok($p->$opt()==1, ' TODO : Add test name') 
     }
   }
+
   for (@all) {
     # TEST*$all
     ok($p->option_exists($_), ' TODO : Add test name');