Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testAsList_subList_toArray_roundTrip (0.15 seconds)

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

        newArray[1] = 5L;
        assertThat((long) list.get(1)).isEqualTo(1L);
      }
    
      // This test stems from a real bug found by andrewk
      public void testAsList_subList_toArray_roundTrip() {
        long[] array = {0L, 1L, 2L, 3L};
        List<Long> list = Longs.asList(array);
        assertThat(Longs.toArray(list.subList(1, 3))).isEqualTo(new long[] {1L, 2L});
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 28.8K bytes
    - Click Count (0)
Back to Top