Lines Matching refs:equal
37 void equal(byte[] x, byte[] y) {
41 void equal(long[] x, long[] y) {
45 void equal(byte[] bytes, BitSet s) {
46 equal(s, BitSet.valueOf(bytes));
47 equal(s, BitSet.valueOf(ByteBuffer.wrap(bytes)));
48 equal(s, BitSet.valueOf(
56 equal(s.toByteArray(), new byte[0]);
57 equal(s.toLongArray(), new long[0]);
65 equal(bytes, s);
66 equal(BitSet.valueOf(bytes).toByteArray(), new byte[0]);
72 equal(bytes, s);
74 equal(BitSet.valueOf(bytes).toByteArray(), expected);
77 equal(BitSet.valueOf(bb).toByteArray(),
88 equal(expected.length, (s.length()+7)/8);
94 equal(bytes, expected);
96 equal(s.get(n), ((bytes[n/8] & (1<<(n%8))) != 0));
124 equal(s1, s2);
125 equal(s1, s3);
127 equal(longs, s1.toLongArray());
128 equal(longs, s2.toLongArray());
129 equal(longs, s3.toLongArray());
132 equal(s1.get(i), ((longs [i/64] & (1L<<(i%64))) != 0));
133 equal(s2.get(i), ((b1.get(i/64) & (1L<<(i%64))) != 0));
134 equal(s3.get(i), ((b2.get(b2.position()+i/64) & (1L<<(i%64))) != 0));
146 void equal(Object x, Object y) {
148 else fail(x + " not equal to " + y);}