Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: This mocks me

by CountZero (Bishop)
on Aug 01, 2007 at 06:27 UTC ( [id://629972]=note: print w/replies, xml ) Need Help??


in reply to This mocks me

The SQL statement 1 is something provided by the program you are testing and it is compared to the expected result, which is in the SQL statement 2. The sub compares both and returns a true result if both statements are equivalent (not necessarily exactly the same). This allows you to change the program generated SQL statement without having to change the test. As long as they parse to the same tree (and hence should be functionally equivalent) the program passes the test.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-24 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found