http://qs321.pair.com?node_id=370532


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.