Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Testing Zork-style game

by petdance (Parson)
on Jun 29, 2004 at 16:19 UTC ( [id://370532]=note: print w/replies, xml ) Need Help??


in reply to Re: Testing Zork-style game
in thread Testing Zork-style game

Except that you'd want to write
ok( $out eq $expected );
as
is( $out, $expected );
If the strings are really long and hard to read through, look at Test::LongString.

xoxo,
Andy

Replies are listed 'Best First'.
Re^3: Testing Zork-style game
by adrianh (Chancellor) on Jun 29, 2004 at 22:36 UTC
    If the strings are really long and hard to read through, look at Test::LongString.

    Test::Differences can be useful for this too.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-20 00:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found