jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. B. Rainsberger" <jbra...@rogers.com>
Subject Re: Is there any way To Test aruments of function ?
Date Thu, 04 Mar 2004 18:57:02 GMT
Kazuhito SUGURI wrote:

> Hi,
> 
> In article <40475AF5.7060404@rogers.com>,
> Thu, 04 Mar 2004 11:36:05 -0500,
> "J. B. Rainsberger" <jbrains@rogers.com> wrote: 
> jbrains> Why are you testing the compiler?
> 
> Dinesh may be wanting to check the expected methods are
> called with expected sequence while his/her process,
> or wanting to trace a method call chain.
> 
> Of cource, I may misunderstanding :-)

OK. There are two methods:

f(int a, int b, int c) {
     // something complex
}

f(int a, int b) {
     f(a, b, 0);
}

Test f(a,b,c), making sure to test the case c=0 in particular. f(a,b) is 
Too Simple to Break.
-- 
J. B. Rainsberger,
Diaspar Software Services
http://www.diasparsoftware.com :: +1 416 791-8603
Let's write software that people understand

Mime
View raw message