My hypothesis is that there should be "==" in the place of the "," (assuming that keys in scalar context will return the number of hash elements). But even with that that code would not be trivial.
Update: Another hypothesis: there should be used the is subroutine (from Test::More) instead the ok subroutine.
In reply to Re: Tripwire tests and future-proofing
by zby
in thread Tripwire tests and future-proofing
by dws
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |