develooper Front page | perl.perl6.language | Postings from July 2006

Re: A note for test writers

Thread Previous
From:
jerry gay
Date:
July 15, 2006 14:53
Subject:
Re: A note for test writers
Message ID:
1d9a3f400607151452x51ceedddt608e96ea9be5ae27@mail.gmail.com
On 7/15/06, Leopold Toetsch <lt@toetsch.at> wrote:
> Folks,
>
> Please always verify test results, don't use the Parrot output of the test as
> the expected output.
> If you are implementing a new feature, write the *test first*.
>
> Thanks,
> leo
>
> PS from r13305:
>
> @@ -1324,7 +1324,7 @@
>         set P2, 300                     # .Integer
>         set P3, 246.246             # .Float
>         div P2, P2, P3
> -       eq P2, 1, EQ4
> +       .fp_eq( P2, 1.218293, EQ4)
>
> 300 / 246.246 just isn't 1 exactly
>
i'm pretty sure this was intended for p6i, not p6l, so i'm forwarding it there.
~jerry

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About