|
|
Choosing A Webhost: |
Re: Possible RT testing bug: msg#00050bug-tracking.request-tracker.devel
Todd Chapman wrote: > Matthew Draper wrote: > >>Todd Chapman wrote: >> >>>RT::Ticket::Create returns an array, so when evaluated in >>>a scalar context it is always true. Correct? >>> >>>If so, isn't this testing code from Tickets_Overlay_SQL flawed? >>> >>>ok( $t->Create(Queue => 'General', Subject => $string), "Ticket Created"); >> >>Flawed in so much as it doesn't do what it looks like it does, >>certainly. It does actually do the right test, though. :) >> >>Look closer... that looks suspiciously like a list context to me. >> > > I don't think so. ok() compares to scalars. Yes, but before it does so, Perl evaluates the list of arguments to pass it. (Sorry about hitting the wrong reply button before.) -- matthew@xxxxxxxxxx
Rt-devel mailing list Rt-devel@xxxxxxxxxxxxxxxxxxxxxxx http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Possible RT testing bug, Todd Chapman |
|---|---|
| Next by Date: | Business Hours Calculation, Alexander Finger |
| Previous by Thread: | Re: Possible RT testing bug, Todd Chapman |
| Next by Thread: | Re: Possible RT testing bug, Todd Chapman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |