Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Testing Zork-style game

by petdance (Parson)
on Jun 29, 2004 at 16:19 UTC ( #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
Node Status?
node history
Node Type: note [id://370532]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2020-08-12 03:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (64 votes). Check out past polls.

    Notices?