cmac has asked for the wisdom of the Perl Monks concerning the following question:

Bet this has been asked and answered before, but my search skills aren't up to finding the answer.

I've written a module that implements tied scalars, arrays, and hashes. Are there available test suites that verify whether such implementations operate as proper perl hashes and arrays? Maybe even scalars although there's not much to test for them?

Thanks,
cmac
www.animalhead.com
  • Comment on test suites for tied hash, array, scalar?

Replies are listed 'Best First'.
Re: test suites for tied hash, array, scalar?
by Corion (Patriarch) on Jan 24, 2009 at 20:34 UTC

    I'm not aware of a prepackaged test suite, but I'd steal from all the Tie modules, and possibly from the test suite of Perl itself, to see that the tied variable behaves like any other variable.