- Sort Score
- Num 10 results
- Language All
Results 11 - 12 of 12 for testAsList_toArray_roundTrip (0.11 seconds)
-
android/guava-tests/test/com/google/common/primitives/IntsTest.java
list.set(0, (int) 2); assertThat(array).isEqualTo(new int[] {(int) 2, (int) 1}); array[1] = (int) 3; assertThat(list).containsExactly((int) 2, (int) 3).inOrder(); } public void testAsList_toArray_roundTrip() { int[] array = {(int) 0, (int) 1, (int) 2}; List<Integer> list = Ints.asList(array); int[] newArray = Ints.toArray(list); // Make sure it returned a copy list.set(0, (int) 4);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 01:43:32 GMT 2026 - 29.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/FloatsTest.java
list.set(0, 2.0f); assertThat(array).isEqualTo(new float[] {2.0f, 1.0f}); array[1] = 3.0f; assertThat(list).containsExactly(2.0f, 3.0f).inOrder(); } public void testAsList_toArray_roundTrip() { float[] array = {0.0f, 1.0f, 2.0f}; List<Float> list = Floats.asList(array); float[] newArray = Floats.toArray(list); // Make sure it returned a copy list.set(0, 4.0f);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 01:43:32 GMT 2026 - 29.4K bytes - Click Count (0)