RE: Test::User, Test::Symlink

2005-06-29 Thread Clayton, Nik
> On Tue, Jun 28, 2005 at 03:24:51PM +0100, Clayton, Nik wrote: > > user_ok(name => 'nik', uid => 1000, shell => '/bin/tcsh', > > 'Check nik\'s account'); > > My only thought is I would use a hash ref. > > user_ok( { name => 'nik', uid => 1000, shell => '/bin/tcsh' }, >

Re: Test::User, Test::Symlink

2005-06-29 Thread Michael G Schwern
On Wed, Jun 29, 2005 at 09:00:05AM +0100, Clayton, Nik wrote: > > > homedir_ok() verifies that the home directory for the given > > > user exists, is owned/group owned by that user, and has a given > > > set of permissions. > > > > > > homedir_ok(name => nik, uid => 1000, gid => 1000, perm =>

Question about Test::WWW::Mechanize

2005-06-29 Thread Vsevolod (Simon) Ilyushchenko
Hi, I've just stumbled upon Test::WWW::Mechanize and tried to use version 1.05_02, but the very first test gave me the following error: 1) /opt/software/perl/lib//Test/WWW/Mechanize.pm:103 - frontPage(MCTests) You tried to run a test without a plan! Gotta have a plan. The Test::WWW::Mechaniz

Re: Question about Test::WWW::Mechanize

2005-06-29 Thread Michael G Schwern
On Wed, Jun 29, 2005 at 03:05:47PM -0400, Vsevolod (Simon) Ilyushchenko wrote: > I've just stumbled upon Test::WWW::Mechanize and tried to use version > 1.05_02, but the very first test gave me the following error: 1.06 was just uploaded to CPAN today, but I don't think it fixes your problem. ht

is_deeply() and code refs

2005-06-29 Thread demerphq
Hi, Yitzchak pointed me to this thread. I thought I'd add that Data::Dump::Streamer v1.14 has the capability to Dump closures properly, that is including bound lexical state. (Albeit with a few minor caveats, its possible to deliberately construct pathological closures that wont be eval'able, howe

Re: is_deeply() and code refs

2005-06-29 Thread Michael G Schwern
On Thu, Jun 30, 2005 at 08:03:32AM +0200, demerphq wrote: > Yitzchak pointed me to this thread. I thought I'd add that > Data::Dump::Streamer v1.14 has the capability to Dump closures > properly, that is including bound lexical state. Interesting. is_deeply() can try to use Data::Dumper::Streamer