Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 12 of 12 for testAsList_subList_toArray_roundTrip (0.14 seconds)

  1. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        newArray[1] = (int) 5;
        assertThat((int) list.get(1)).isEqualTo((int) 1);
      }
    
      // This test stems from a real bug found by andrewk
      public void testAsList_subList_toArray_roundTrip() {
        int[] array = {(int) 0, (int) 1, (int) 2, (int) 3};
        List<Integer> list = Ints.asList(array);
        assertThat(Ints.toArray(list.subList(1, 3))).isEqualTo(new int[] {(int) 1, (int) 2});
    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)
  2. guava-tests/test/com/google/common/primitives/FloatsTest.java

        newArray[1] = 5.0f;
        assertThat((float) list.get(1)).isEqualTo(1.0f);
      }
    
      // This test stems from a real bug found by andrewk
      public void testAsList_subList_toArray_roundTrip() {
        float[] array = {0.0f, 1.0f, 2.0f, 3.0f};
        List<Float> list = Floats.asList(array);
        assertThat(Floats.toArray(list.subList(1, 3))).isEqualTo(new float[] {1.0f, 2.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)
Back to Top