Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Possible RT testing bug: msg#00050

bug-tracking.request-tracker.devel

Subject: Re: Possible RT testing bug

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

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
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>
Google Custom Search

Recently Viewed:
drivers.mtd/200...    security.firewa...    java.openamf.cv...    rpm.yum/2003-08...    telephony.sipp....    file-systems.oc...    qnx.openqnx.dev...    voip.linphone.u...    hardware.sony/2...    network.simulat...    boot-loaders.gr...    ietf.usenet.for...    culture.languag...    emacs.latex.pre...    music.jamiroqua...    xfree86.neomagi...    user-groups.lin...    ltp/2006-08/msg...    kde.kst/2005-08...    programming.too...    os.freebsd.deve...    window-managers...    audio.cd-record...    gnu.fiasco.bugs...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation