Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for testToArray_withConversion (0.21 sec)

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

      public void testToArray_withNull() {
        List<@Nullable Byte> list = Arrays.asList((byte) 0, (byte) 1, null);
        assertThrows(NullPointerException.class, () -> Bytes.toArray(list));
      }
    
      public void testToArray_withConversion() {
        byte[] array = {(byte) 0, (byte) 1, (byte) 2};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
        List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      public void testToArray_withNull() {
        List<@Nullable Double> list = Arrays.asList(0.0, 1.0, null);
        assertThrows(NullPointerException.class, () -> Doubles.toArray(list));
      }
    
      public void testToArray_withConversion() {
        double[] array = {0.0, 1.0, 2.0};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
        List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/IntsTest.java

      public void testToArray_withNull() {
        List<@Nullable Integer> list = Arrays.asList((int) 0, (int) 1, null);
        assertThrows(NullPointerException.class, () -> Ints.toArray(list));
      }
    
      public void testToArray_withConversion() {
        int[] array = {0, 1, 2};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
        List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/DoublesTest.java

      public void testToArray_withNull() {
        List<@Nullable Double> list = Arrays.asList(0.0, 1.0, null);
        assertThrows(NullPointerException.class, () -> Doubles.toArray(list));
      }
    
      public void testToArray_withConversion() {
        double[] array = {0.0, 1.0, 2.0};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
        List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/LongsTest.java

      }
    
      public void testToArray_withNull() {
        List<@Nullable Long> list = Arrays.asList(0L, 1L, null);
        assertThrows(NullPointerException.class, () -> Longs.toArray(list));
      }
    
      public void testToArray_withConversion() {
        long[] array = {0L, 1L, 2L};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
        List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/ShortsTest.java

      public void testToArray_withNull() {
        List<@Nullable Short> list = Arrays.asList((short) 0, (short) 1, null);
        assertThrows(NullPointerException.class, () -> Shorts.toArray(list));
      }
    
      public void testToArray_withConversion() {
        short[] array = {(short) 0, (short) 1, (short) 2};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
        List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

      public void testToArray_withNull() {
        List<@Nullable Float> list = Arrays.asList(0.0f, 1.0f, null);
        assertThrows(NullPointerException.class, () -> Floats.toArray(list));
      }
    
      public void testToArray_withConversion() {
        float[] array = {0.0f, 1.0f, 2.0f};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
        List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/IntsTest.java

      public void testToArray_withNull() {
        List<@Nullable Integer> list = Arrays.asList((int) 0, (int) 1, null);
        assertThrows(NullPointerException.class, () -> Ints.toArray(list));
      }
    
      public void testToArray_withConversion() {
        int[] array = {0, 1, 2};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
        List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/FloatsTest.java

      public void testToArray_withNull() {
        List<@Nullable Float> list = Arrays.asList(0.0f, 1.0f, null);
        assertThrows(NullPointerException.class, () -> Floats.toArray(list));
      }
    
      public void testToArray_withConversion() {
        float[] array = {0.0f, 1.0f, 2.0f};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
        List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.4K bytes
    - Viewed (0)
Back to top