in reply to Re: XBASIC to Perl translator: semantical equity
in thread XBASIC to Perl translator: semantical equity

Its a mess. The BASIC program just outputs some graphics. I would loved to have some numerical outputs that i could test against. But the code is just a mess and i fear breaking it during adding some functionility.

So its not trivial to collect output to test against.
  • Comment on Re: Re: XBASIC to Perl translator: semantical equity

Replies are listed 'Best First'.
Re: Re: Re: XBASIC to Perl translator: semantical equity
by simonm (Vicar) on Apr 17, 2004 at 22:38 UTC
    The BASIC program just outputs some graphics. I would loved to have some numerical outputs that i could test against. But the code is just a mess and i fear breaking it during adding some functionility.

    With a bit of work, you can treat the graphics as "numerical outputs". If the output is supposed to be pixel-perfect, the graphics files produced by the two programs will be identical. If there's some acceptable range of variation, perhaps there's a way to use one of the image-processing modules on CPAN to help with the comparison.

      Thats a good idea. I will try to dig if the output is artifactless when accessed with perl.

      thanks for this practical idea. Murat