commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Karasulu" <>
Subject RE: [codec] Binary BIT_n and BITS question.
Date Thu, 18 Mar 2004 19:40:38 GMT

> -----Original Message-----
> From: Gary Gregory []

> the question is, I think, what
> visibility should these fields have? I see several views, from strict to
> lax:
> (1) Make the fields private, there are implementation details. Let the
> unit tests duplicate similar declarations. While duplication is not OO
> it ensures that the tests /really/ can make the difference b/w expected
> and actual values. After all, if there was a bug in some bit
> declaration, the unit test might not find it.
> I think I like (1).

Yes (1) sounds good to me too.  I like the point you've made concerning 
expected vs. actual values: if there is a mistake in a Binary BIT_n 
value then the unit test case might be able to catch it presuming the 
testcase does not make the same exact mistake.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message