/external/guava/guava-tests/test/com/google/common/primitives/ |
BytesTest.java | 39 private static final byte[] ARRAY1 = {(byte) 1}; 54 assertFalse(Bytes.contains(ARRAY1, (byte) 2)); 64 assertEquals(-1, Bytes.indexOf(ARRAY1, (byte) 2)); 80 assertEquals(-1, Bytes.indexOf(ARRAY234, ARRAY1)); 81 assertEquals(-1, Bytes.indexOf(ARRAY1, ARRAY234)); 82 assertEquals(0, Bytes.indexOf(ARRAY1, ARRAY1)); 112 assertEquals(-1, Bytes.lastIndexOf(ARRAY1, (byte) 2)); 128 assertTrue(Arrays.equals(ARRAY1, Bytes.concat(ARRAY1))); [all...] |
DoublesTest.java | 45 private static final double[] ARRAY1 = {(double) 1}; 86 assertFalse(Doubles.contains(ARRAY1, (double) 2)); 102 assertEquals(-1, Doubles.indexOf(ARRAY1, (double) 2)); 124 assertEquals(-1, Doubles.indexOf(ARRAY234, ARRAY1)); 125 assertEquals(-1, Doubles.indexOf(ARRAY1, ARRAY234)); 126 assertEquals(0, Doubles.indexOf(ARRAY1, ARRAY1)); 163 assertEquals(-1, Doubles.lastIndexOf(ARRAY1, (double) 2)); 227 assertTrue(Arrays.equals(ARRAY1, Doubles.concat(ARRAY1))); [all...] |
FloatsTest.java | 45 private static final float[] ARRAY1 = {(float) 1}; 86 assertFalse(Floats.contains(ARRAY1, (float) 2)); 101 assertEquals(-1, Floats.indexOf(ARRAY1, (float) 2)); 123 assertEquals(-1, Floats.indexOf(ARRAY234, ARRAY1)); 124 assertEquals(-1, Floats.indexOf(ARRAY1, ARRAY234)); 125 assertEquals(0, Floats.indexOf(ARRAY1, ARRAY1)); 162 assertEquals(-1, Floats.lastIndexOf(ARRAY1, (float) 2)); 226 assertTrue(Arrays.equals(ARRAY1, Floats.concat(ARRAY1))); [all...] |
IntsTest.java | 43 private static final int[] ARRAY1 = {(int) 1}; 102 assertFalse(Ints.contains(ARRAY1, (int) 2)); 112 assertEquals(-1, Ints.indexOf(ARRAY1, (int) 2)); 128 assertEquals(-1, Ints.indexOf(ARRAY234, ARRAY1)); 129 assertEquals(-1, Ints.indexOf(ARRAY1, ARRAY234)); 130 assertEquals(0, Ints.indexOf(ARRAY1, ARRAY1)); 160 assertEquals(-1, Ints.lastIndexOf(ARRAY1, (int) 2)); 208 assertTrue(Arrays.equals(ARRAY1, Ints.concat(ARRAY1))); [all...] |
LongsTest.java | 43 private static final long[] ARRAY1 = {(long) 1}; 74 assertFalse(Longs.contains(ARRAY1, (long) 2)); 84 assertEquals(-1, Longs.indexOf(ARRAY1, (long) 2)); 100 assertEquals(-1, Longs.indexOf(ARRAY234, ARRAY1)); 101 assertEquals(-1, Longs.indexOf(ARRAY1, ARRAY234)); 102 assertEquals(0, Longs.indexOf(ARRAY1, ARRAY1)); 132 assertEquals(-1, Longs.lastIndexOf(ARRAY1, (long) 2)); 180 assertTrue(Arrays.equals(ARRAY1, Longs.concat(ARRAY1))); [all...] |
ShortsTest.java | 43 private static final short[] ARRAY1 = {(short) 1}; 110 assertFalse(Shorts.contains(ARRAY1, (short) 2)); 120 assertEquals(-1, Shorts.indexOf(ARRAY1, (short) 2)); 136 assertEquals(-1, Shorts.indexOf(ARRAY234, ARRAY1)); 137 assertEquals(-1, Shorts.indexOf(ARRAY1, ARRAY234)); 138 assertEquals(0, Shorts.indexOf(ARRAY1, ARRAY1)); 168 assertEquals(-1, Shorts.lastIndexOf(ARRAY1, (short) 2)); 216 assertTrue(Arrays.equals(ARRAY1, Shorts.concat(ARRAY1))); [all...] |
CharsTest.java | 42 private static final char[] ARRAY1 = {(char) 1}; 101 assertFalse(Chars.contains(ARRAY1, (char) 2)); 111 assertEquals(-1, Chars.indexOf(ARRAY1, (char) 2)); 127 assertEquals(-1, Chars.indexOf(ARRAY234, ARRAY1)); 128 assertEquals(-1, Chars.indexOf(ARRAY1, ARRAY234)); 129 assertEquals(0, Chars.indexOf(ARRAY1, ARRAY1)); 159 assertEquals(-1, Chars.lastIndexOf(ARRAY1, (char) 2)); 207 assertTrue(Arrays.equals(ARRAY1, Chars.concat(ARRAY1))); [all...] |
SignedBytesTest.java | 40 private static final byte[] ARRAY1 = {(byte) 1}; 129 assertEquals("1", SignedBytes.join(",", ARRAY1));
|