FAQ
import java.util.Arrays;

...

Arrays.equals(array1, array2);

On 9/21/05, Marvin Humphrey wrote:
I wrote...
I don't see any junit tests which address IndexOutput directly.
I'm going to create one unless someone points out a file or portion
thereof that I've overlooked.
It would be a lot easier to check the output of IndexOutput if JUnit
could compare byte arrays. :|

I can loop through the arrays one byte at a time, performing an
assertEquals for each, I suppose. That seems kludgy to me. What's
standard practice?

Marvin Humphrey
Rectangular Research
http://www.rectangular.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 11 | next ›
Discussion Overview
groupjava-dev @
categorieslucene
postedSep 21, '05 at 2:27a
activeSep 27, '05 at 6:58p
posts11
users5
websitelucene.apache.org

People

Translate

site design / logo © 2021 Grokbase