From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2a687662f09731bb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!proxad.net!infeed-2.proxad.net!news4-e.free.fr!not-for-mail Sender: sam@willow.rfc1149.net From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: Request for comments on simple Ada program References: <87psp1lsc4.fsf@willow.rfc1149.net> Date: 15 Nov 2005 18:47:09 +0100 Message-ID: <87lkzpls6a.fsf@willow.rfc1149.net> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Leafnode-NNTP-Posting-Host: 2001:660:330f:f810:211:2fff:fea6:3aa1 Organization: Guest of ProXad - France NNTP-Posting-Date: 15 Nov 2005 18:47:13 MET NNTP-Posting-Host: 81.56.47.149 X-Trace: 1132076833 news4-e.free.fr 9481 81.56.47.149:59132 X-Complaints-To: abuse@proxad.net Xref: g2news1.google.com comp.lang.ada:6398 Date: 2005-11-15T18:47:13+01:00 List-Id: >>>>> "Sam" == Samuel Tardieu writes: Sam> It doesn't seem logical to have to modify any part involved in Sam> prime numbers computation, especially if you want to be able to Sam> test it in isolation. Moreover (I forgot this point), you can now change the Check_Primes procedure (in the Primes package body) without affecting the main program, for example to use something else than Erathostene's sieves. And the unit test will still be usable (and then becomes also a regression test, which checks that you haven't broken anything). Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam