in reply to Re: Re: Tripwire tests and future-proofing
in thread Tripwire tests and future-proofing
From Test::More:
ok($this eq $that, $test_name);
This simply evaluates any expression ($this eq $that is just a simple example) and uses that to determine if the test succeeded or failed. A true expression passes, a false one fails. Very simple.So it's not exactly what you describe.
Additionally a list in scalar context returns it's last value not the number of it's elements. So your explanation of what happens after the keys function is not right.
Update:
$ perl -e '%h = (1, 1, 1, 1); print scalar keys %h, "\n"'
1
$ perl -e 'print scalar (1, "a"), "\n";' a
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Tripwire tests and future-proofing
by adrianh (Chancellor) on May 25, 2004 at 09:51 UTC | |
by zby (Vicar) on May 25, 2004 at 10:03 UTC | |
by adrianh (Chancellor) on May 25, 2004 at 10:41 UTC | |
by BUU (Prior) on May 25, 2004 at 21:37 UTC |
In Section
Meditations