News:

Choose a design and let our professionals help you build a successful website   - ITAcumens

Main Menu

Interpreting The Results in Perl Programming

Started by thiruvasagamani, Nov 13, 2008, 09:51 PM

Previous topic - Next topic

thiruvasagamani

Perl Programming

Interpreting The Results


    * Turns out, there is no 'tz' argument to new()!

          o And it didn't warn us about bad arguments

    * The real argument is 'offset'

          o So the synopsis is wrong.

          o This is a real bug I found while writing this

    * Damn those tests.

When to use is()

    * Use instead of ok() when you're testing "this equals that".

          o Yes, there is an isnt() and isn't().

    * is() does a string comparison which 99.99% of the time comes out right.

          o cmp_ok() exists to test with specific comparison operators
Thiruvasakamani Karnan