Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for testToInt (0.06 sec)

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

      private static final byte GREATEST = (byte) 255;
    
      // Only in this class, VALUES must be strictly ascending
      private static final byte[] VALUES = {LEAST, 127, (byte) 128, (byte) 129, GREATEST};
    
      public void testToInt() {
        assertThat(UnsignedBytes.toInt((byte) 0)).isEqualTo(0);
        assertThat(UnsignedBytes.toInt((byte) 1)).isEqualTo(1);
        assertThat(UnsignedBytes.toInt((byte) 127)).isEqualTo(127);
    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/math/PairedStatsAccumulatorTest.java

                Collections.nCopies(MANY_VALUES_COUNT, ONE_VALUE),
                Collections.nCopies(MANY_VALUES_COUNT, OTHER_ONE_VALUE),
                2);
      }
    
      public void testCount() {
        assertThat(emptyAccumulator.count()).isEqualTo(0);
        assertThat(emptyAccumulatorByAddAllEmptyPairedStats.count()).isEqualTo(0);
        assertThat(oneValueAccumulator.count()).isEqualTo(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/PairedStatsTest.java

    /**
     * Tests for {@link PairedStats}. This tests instances created by {@link
     * PairedStatsAccumulator#snapshot}.
     *
     * @author Pete Gillin
     */
    public class PairedStatsTest extends TestCase {
    
      public void testCount() {
        assertThat(EMPTY_PAIRED_STATS.count()).isEqualTo(0);
        assertThat(ONE_VALUE_PAIRED_STATS.count()).isEqualTo(1);
        assertThat(TWO_VALUES_PAIRED_STATS.count()).isEqualTo(2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

                Collections.nCopies(MANY_VALUES_COUNT, ONE_VALUE),
                Collections.nCopies(MANY_VALUES_COUNT, OTHER_ONE_VALUE),
                2);
      }
    
      public void testCount() {
        assertThat(emptyAccumulator.count()).isEqualTo(0);
        assertThat(emptyAccumulatorByAddAllEmptyPairedStats.count()).isEqualTo(0);
        assertThat(oneValueAccumulator.count()).isEqualTo(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/StatsTest.java

     * Tests for {@link Stats}. This tests instances created by both {@link Stats#of} and {@link
     * StatsAccumulator#snapshot}.
     *
     * @author Pete Gillin
     */
    public class StatsTest extends TestCase {
    
      public void testCount() {
        assertThat(EMPTY_STATS_VARARGS.count()).isEqualTo(0);
        assertThat(EMPTY_STATS_ITERABLE.count()).isEqualTo(0);
        assertThat(ONE_VALUE_STATS.count()).isEqualTo(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(values);
        return accumulator;
      }
    
      public void testCount() {
        assertThat(emptyAccumulator.count()).isEqualTo(0);
        assertThat(emptyAccumulatorByAddAllEmptyIterable.count()).isEqualTo(0);
        assertThat(emptyAccumulatorByAddAllEmptyStats.count()).isEqualTo(0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        for (Method method : methods) {
          if (isAnyEnter(method) || isWaitFor(method)) {
            validateMethod(method);
            addTests(suite, method);
          }
        }
    
        assertEquals(980, suite.testCount());
    
        return suite;
      }
    
      /** A typical timeout value we'll use in the tests. */
      private static final long SMALL_TIMEOUT_MILLIS = 10;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        for (Method method : methods) {
          if (isAnyEnter(method) || isWaitFor(method)) {
            validateMethod(method);
            addTests(suite, method);
          }
        }
    
        assertEquals(980, suite.testCount());
    
        return suite;
      }
    
      /** A typical timeout value we'll use in the tests. */
      private static final long SMALL_TIMEOUT_MILLIS = 10;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(values);
        return accumulator;
      }
    
      public void testCount() {
        assertThat(emptyAccumulator.count()).isEqualTo(0);
        assertThat(emptyAccumulatorByAddAllEmptyIterable.count()).isEqualTo(0);
        assertThat(emptyAccumulatorByAddAllEmptyStats.count()).isEqualTo(0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
Back to top