[Omaha.pm] lmao... if ($0 !~ /.t/) {

Jay Hannah jhannah at omnihotels.com
Fri May 26 11:07:46 PDT 2006


Hit this line of code today while trying to fix a bug:

  next if ($rpc eq "ALL" and $filter_request);

Commenting out that line of code fixes our bug! Yay! But then some of my
tests for another set of business logic fail. 

Totally joking, Sean suggested this patch:

  if ($0 !~ /.t$/) {
    next if ($rpc eq "ALL" and $filter_request);
  }

If you don't find that hilarious then either you're not versed in Perl
automated testing, or you're far less of a geek than Sean and I... :)

j



More information about the Omaha-pm mailing list