Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^6: Checking two scalars in Test::More $expected. It works, but is it proper?

by gctaylor1 (Hermit)
on Mar 30, 2009 at 17:25 UTC ( [id://754196]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Checking two scalars in Test::More $expected. It works, but is it proper?
in thread Checking two scalars in Test::More $expected. It works, but is it proper?

chromatic> I suppose I'm asking "What suggested to you that that syntax would do what you want?"
The process went something like this.
  1. Tried a bunch of things that failed.
  2. What else can I try?
  3. Hmm, I'm returning "x" and "y" from my subroutine, why not see what happens with "x" and "y" on the right side of the expression.
  4. Tried a few more things to find some common working scenarios. Didn't find any.
  5. It works but it doesn't look right, can't seem to find a direct example of subroutine testing.
    chromatic> "What did you want to accomplish?"
    Not a whole of deep thought, just wanted to compare the return values of my subroutine.
    chromatic> and you've done something here I've never seen before. That's fascinating to me.
    Yes, probably in a WTF kind of way. I'm saying this to be humorous with a smile on my face.
    • Comment on Re^6: Checking two scalars in Test::More $expected. It works, but is it proper?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://754196]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2026-04-17 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.