Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: Forth Testi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 25 Topic 3778 of 4325
Post > Topic >>

Re: Forth Testing Tools?

by Krishna Myneni <krishnamyneni@[EMAIL PROTECTED] > Feb 28, 2008 at 08:13 AM

Ed wrote:
> "Krishna Myneni" <krishnamyneni@[EMAIL PROTECTED]
> wrote in message
news:T42xj.80484$vt2.52096@[EMAIL PROTECTED]
>> Ed wrote:
>>> ...
>>>
>>> Which suggests that test suites are mostly a "feel good" utility
>>> i.e. one feels good when it p***** but otherwise has little value.
>>> It impresses the customer but that's about all.
>>>
>>> Who would find Hayes useful?  Probably not someone who has
>>> brought up a forth.  ...
>> Are you considering only testing of Forth systems? What about using the
test
>> suite to test applications? For instance, the extended version of the
Hayes
>> tester, incor****ating extensions by David Williams and Anton Ertl, have
proved
>> valuable in finding problems with the Forth Scientific Library modules.
These
>> problems went unnoticed for many years. The findings are do***ented in
an
>> earlier thread on automated FSL tests.
> 
> Bugs go by unnoticed because the program (or parts of it) haven't been
> exercised.  It's hard to believe that a well-used program would not show
> up its errors relatively quickly.  It may be that FSL modules just don't
> get used.
> 

The FSL modules probably don't get used that often. However, when dealing
with 
numerical algorithms some kinds of errors can't easily be detected in
normal 
use. One such example is a lower accuracy in the result than specified by
the 
design. Validating the accuracy requires comparing against known test
cases, e.g.

1e-12 rel-near F!
1e-12 abs-near F!
set-near

CR
TESTING LOGISTIC
t{ -1e    1e    0e   logistic  ->  0.268941421370e   r}t


Accuracy is usually also a function of the input parameters, so validation

across a range of inputs is needed. Any numerical library that wants to be
taken 
seriously requires an accompanying test suite, because it's too much work
on the 
part of the user to verify for him/herself.

> My background is electronics instrumentation.  These days most have
> built-in self-diagnostics.  They're there to provide the user with a
quick
> way to determine whether the instrument is basically functional.  They
> don't, nor can they, determine whether a fault exits.
> 

Well, it depends partly on how expensive the instrument is. I've seen a 
mid-range Tektronix scope identify a specific problem with its timebase
during 
the diagnostics on power up.

> I have nothing against the Hayes suite.  If it shows up a problem then
> it's better than if the error remained unfound.
> 
> 
> 

Many types of applications don't need test code, but I think it is a must
for 
libraries designed for ****table use. I notice that the Forth Foundation
Library 
(FFL) provides its own test code. It's a shame that the Hayes tester was
found 
not to be suitable for the FFL. IMO, a commonly adopted test harness would
be a 
significant step forward.

Regards,
Krishna
 




 25 Posts in Topic:
Forth Testing Tools?
Josh Grams <josh@[EMAI  2008-02-24 09:52:46 
Re: Forth Testing Tools?
anton@[EMAIL PROTECTED]   2008-02-24 21:10:47 
Re: Forth Testing Tools?
Dennis Ruffer <druffer  2008-02-24 23:43:04 
Re: Forth Testing Tools?
Albert van der Horst <  2008-02-25 02:39:41 
Re: Forth Testing Tools?
"Ed" <nospam  2008-02-25 23:52:59 
Re: Forth Testing Tools?
Krishna Myneni <krishn  2008-02-26 18:20:56 
Re: Forth Testing Tools?
Albert van der Horst <  2008-02-27 12:54:24 
Re: Forth Testing Tools?
"Ed" <nospam  2008-02-28 12:18:53 
Re: Forth Testing Tools?
Krishna Myneni <krishn  2008-02-28 08:13:40 
Re: Forth Testing Tools?
"Ed" <nospam  2008-03-01 13:21:06 
Re: Forth Testing Tools?
anton@[EMAIL PROTECTED]   2008-02-27 21:05:32 
Re: Forth Testing Tools?
Josh Grams <josh@[EMAI  2008-02-25 07:40:19 
Re: Forth Testing Tools?
Charles Turner <vze26m  2008-02-26 04:14:03 
Re: Forth Testing Tools?
Gerry <gerry@[EMAIL PR  2008-02-26 09:47:07 
Re: Forth Testing Tools?
Josh Grams <josh@[EMAI  2008-02-26 18:46:51 
Re: Forth Testing Tools?
Krishna Myneni <krishn  2008-02-26 21:57:00 
Re: Forth Testing Tools?
Dennis Ruffer <druffer  2008-02-27 19:18:04 
Re: Forth Testing Tools?
Josh Grams <josh@[EMAI  2008-04-04 02:13:35 
Re: Forth Testing Tools?
Josh Grams <josh@[EMAI  2008-02-28 06:17:39 
Re: Forth Testing Tools?
Albert van der Horst <  2008-02-28 17:23:48 
Re: Forth Testing Tools?
Dennis Ruffer <druffer  2008-02-28 17:34:10 
Re: Forth Testing Tools?
Josh Grams <josh@[EMAI  2008-02-28 10:38:27 
Re: Forth Testing Tools?
Josh Grams <josh@[EMAI  2008-02-28 10:54:29 
Re: Forth Testing Tools?
Dennis Ruffer <druffer  2008-03-01 17:24:22 
Re: Forth Testing Tools?
Dennis Ruffer <druffer  2008-03-01 18:26:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 16:28:47 CST 2008.