Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for testJoin (0.03 sec)

  1. guava-tests/test/com/google/common/io/MultiInputStreamTest.java

    /**
     * Test class for {@link MultiInputStream}.
     *
     * @author Chris Nokleberg
     */
    @NullUnmarked
    public class MultiInputStreamTest extends IoTestCase {
    
      public void testJoin() throws Exception {
        joinHelper(0);
        joinHelper(1);
        joinHelper(0, 0, 0);
        joinHelper(10, 20);
        joinHelper(10, 0, 20);
        joinHelper(0, 10, 20);
        joinHelper(10, 20, 0);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java

    /**
     * Test class for {@link MultiInputStream}.
     *
     * @author Chris Nokleberg
     */
    @NullUnmarked
    public class MultiInputStreamTest extends IoTestCase {
    
      public void testJoin() throws Exception {
        joinHelper(0);
        joinHelper(1);
        joinHelper(0, 0, 0);
        joinHelper(10, 20);
        joinHelper(10, 0, 20);
        joinHelper(0, 10, 20);
        joinHelper(10, 20, 0);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  3. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/SignedBytesTest.java

        assertThrows(IllegalArgumentException.class, () -> min());
      }
    
      public void testMin() {
        assertThat(min(LEAST)).isEqualTo(LEAST);
        assertThat(min(GREATEST)).isEqualTo(GREATEST);
        assertThat(min((byte) 0, (byte) -128, (byte) -1, (byte) 127, (byte) 1)).isEqualTo((byte) -128);
      }
    
      public void testJoin() {
        assertThat(SignedBytes.join(",", EMPTY)).isEmpty();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  6. 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(",", 1.0, 2.0)).isEqualTo("1.0,2.0");
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  7. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 29.3K bytes
    - Viewed (0)
  8. android/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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 25.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/ShortsTest.java

        assertThrows(IllegalArgumentException.class, () -> Shorts.ensureCapacity(ARRAY1, -1, 1));
        assertThrows(IllegalArgumentException.class, () -> Shorts.ensureCapacity(ARRAY1, 1, -1));
      }
    
      public void testJoin() {
        assertThat(Shorts.join(",", EMPTY)).isEmpty();
        assertThat(Shorts.join(",", ARRAY1)).isEqualTo("1");
        assertThat(Shorts.join(",", (short) 1, (short) 2)).isEqualTo("1,2");
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        assertThat(longManyValuesAccumulatorByAddAllIterator.max()).isEqualTo(LONG_MANY_VALUES_MAX);
        assertThat(longManyValuesAccumulatorByAddAllVarargs.max()).isEqualTo(LONG_MANY_VALUES_MAX);
      }
    
      public void testMin() {
        assertThrows(IllegalStateException.class, () -> emptyAccumulator.min());
        assertThrows(IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyIterable.min());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 36.9K bytes
    - Viewed (0)
Back to top