in reply to is perl testing the answer?

I think Perl is great for testing RPC api's, but Perl is not very usable for testing strong typed languages. It can be used to test the results of functions that have side effects, though (for example: if some function should create a file and write a certain string to it, Perl probably provides one of the easiest ways to check if its contents are correct).

That said, I don't think it'll be hard to output "1 ok\n" in other languages, so why bother with Perl?

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Replies are listed 'Best First'.
Re: Re: is perl testing the answer?
by samtregar (Abbot) on Jun 03, 2003 at 18:04 UTC
    That said, I don't think it'll be hard to output "1 ok\n" in other languages, so why bother with Perl?

    Obviously you've never tried to print a string to stdout in Java!

    -sam

Re^2: is perl testing the answer?
by particle (Vicar) on Jun 03, 2003 at 19:29 UTC
    That said, I don't think it'll be hard to output "1 ok\n" in other languages, so why bother with Perl?

    indeed. at a previous assignment, i wrote a testing library for korn shell scripts, in korn shell. i wrote my tests first, and produced over three thousand lines of the highest quality ksh i've ever written.

    that said, i'm glad i'm back to programming perl. the ability to write expressive tests makes expressive programming safe and easy.

    ~Particle *accelerates*