Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for testJoin (0.04 sec)

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

          for (int i = 0; i <= 0xff; i++) {
            assertThat(UnsignedBytes.toString((byte) i, radix)).isEqualTo(Integer.toString(i, radix));
          }
        }
      }
    
      public void testJoin() {
        assertThat(UnsignedBytes.join(",", new byte[] {})).isEmpty();
        assertThat(UnsignedBytes.join(",", new byte[] {(byte) 1})).isEqualTo("1");
        assertThat(UnsignedBytes.join(",", (byte) 1, (byte) 2)).isEqualTo("1,2");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        for (long a : UNSIGNED_INTS) {
          for (int base : bases) {
            assertThat(Long.toString(a, base)).isEqualTo(UnsignedInts.toString((int) a, base));
          }
        }
      }
    
      public void testJoin() {
        assertThat(join()).isEmpty();
        assertThat(join(1)).isEqualTo("1");
        assertThat(join(1, 2)).isEqualTo("1,2");
        assertThat(join(-1, Integer.MIN_VALUE)).isEqualTo("4294967295,2147483648");
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        assertThrows(IllegalArgumentException.class, () -> Chars.ensureCapacity(ARRAY1, -1, 1));
        assertThrows(IllegalArgumentException.class, () -> Chars.ensureCapacity(ARRAY1, 1, -1));
      }
    
      public void testJoin() {
        assertThat(Chars.join(",", EMPTY)).isEmpty();
        assertThat(Chars.join(",", '1')).isEqualTo("1");
        assertThat(Chars.join(",", '1', '2')).isEqualTo("1,2");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThrows(IllegalArgumentException.class, () -> Doubles.ensureCapacity(ARRAY1, 1, -1));
      }
    
      @GwtIncompatible // Double.toString returns different value in GWT.
      public void testJoin() {
        assertThat(Doubles.join(",", EMPTY)).isEmpty();
        assertThat(Doubles.join(",", ARRAY1)).isEqualTo("1.0");
        assertThat(Doubles.join(",", (double) 1, (double) 2)).isEqualTo("1.0,2.0");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThrows(IllegalArgumentException.class, () -> Booleans.ensureCapacity(ARRAY_FALSE, -1, 1));
        assertThrows(IllegalArgumentException.class, () -> Booleans.ensureCapacity(ARRAY_FALSE, 1, -1));
      }
    
      public void testJoin() {
        assertThat(Booleans.join(",", EMPTY)).isEmpty();
        assertThat(Booleans.join(",", ARRAY_FALSE)).isEqualTo("false");
        assertThat(Booleans.join(",", false, true)).isEqualTo("false,true");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThrows(IllegalArgumentException.class, () -> Floats.ensureCapacity(ARRAY1, 1, -1));
      }
    
      @GwtIncompatible // Float.toString returns different value in GWT.
      public void testJoin() {
        assertThat(Floats.join(",", EMPTY)).isEmpty();
        assertThat(Floats.join(",", ARRAY1)).isEqualTo("1.0");
        assertThat(Floats.join(",", (float) 1, (float) 2)).isEqualTo("1.0,2.0");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThrows(IllegalArgumentException.class, () -> Ints.ensureCapacity(ARRAY1, -1, 1));
        assertThrows(IllegalArgumentException.class, () -> Ints.ensureCapacity(ARRAY1, 1, -1));
      }
    
      public void testJoin() {
        assertThat(Ints.join(",", EMPTY)).isEmpty();
        assertThat(Ints.join(",", ARRAY1)).isEqualTo("1");
        assertThat(Ints.join(",", (int) 1, (int) 2)).isEqualTo("1,2");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThrows(IllegalArgumentException.class, () -> Doubles.ensureCapacity(ARRAY1, 1, -1));
      }
    
      @GwtIncompatible // Double.toString returns different value in GWT.
      public void testJoin() {
        assertThat(Doubles.join(",", EMPTY)).isEmpty();
        assertThat(Doubles.join(",", ARRAY1)).isEqualTo("1.0");
        assertThat(Doubles.join(",", (double) 1, (double) 2)).isEqualTo("1.0,2.0");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThrows(IllegalArgumentException.class, () -> Floats.ensureCapacity(ARRAY1, 1, -1));
      }
    
      @GwtIncompatible // Float.toString returns different value in GWT.
      public void testJoin() {
        assertThat(Floats.join(",", EMPTY)).isEmpty();
        assertThat(Floats.join(",", ARRAY1)).isEqualTo("1.0");
        assertThat(Floats.join(",", (float) 1, (float) 2)).isEqualTo("1.0,2.0");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThrows(IllegalArgumentException.class, () -> Longs.ensureCapacity(ARRAY1, -1, 1));
        assertThrows(IllegalArgumentException.class, () -> Longs.ensureCapacity(ARRAY1, 1, -1));
      }
    
      public void testJoin() {
        assertThat(Longs.join(",", EMPTY)).isEmpty();
        assertThat(Longs.join(",", ARRAY1)).isEqualTo("1");
        assertThat(Longs.join(",", (long) 1, (long) 2)).isEqualTo("1,2");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
Back to top