http://www.perlmonks.org?node_id=370262


in reply to Re: Testing Zork-style game
in thread Testing Zork-style game

How would I test, using the same testing code, a C, C++, Perl, and LISP implementation of the same design? I want to use the same testing code so I can demonstrate that I code the same functionality in different languages. (This is a personal requirement.)

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

Replies are listed 'Best First'.
Re^3: Testing Zork-style game
by adrianh (Chancellor) on Jun 28, 2004 at 18:10 UTC
    How would I test, using the same testing code, a C, C++, Perl, and LISP implementation of the same design? I want to use the same testing code so I can demonstrate that I code the same functionality in different languages.

    You might want to consider producing a scriptable interface to your code base and testing via that. Implement the scriptable API in each language and Bob's your Father's brother.

    You might want take a gander at Developing a timeclock application. It's in Ruby, but I think the point comes across.