Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 43 for jmod (0.28 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

          // we should get an ExecutionException; if we call getUnchecked(), we should get an
          // UncheckedExecutionException.
          int mod = i % 3;
          if (mod == 0 || mod == 2) {
            assertThat(result.get(i)).isInstanceOf(ExecutionException.class);
            assertThat((ExecutionException) result.get(i)).hasCauseThat().isSameInstanceAs(e);
          } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      @SuppressWarnings("deprecation")
      public void testUnmodifiableIteratorShortCircuit() {
        Iterator<String> mod = Lists.newArrayList("a", "b", "c").iterator();
        UnmodifiableIterator<String> unmod = Iterators.unmodifiableIterator(mod);
        assertNotSame(mod, unmod);
        assertSame(unmod, Iterators.unmodifiableIterator(unmod));
        assertSame(unmod, Iterators.unmodifiableIterator((Iterator<String>) unmod));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

              int expected = aUnsigned.bigIntegerValue().mod(bUnsigned.bigIntegerValue()).intValue();
              UnsignedInteger unsignedRem = aUnsigned.mod(bUnsigned);
              assertThat(unsignedRem.intValue()).isEqualTo(expected);
            }
          }
        }
      }
    
      public void testModByZero() {
        for (int a : TEST_INTS) {
          try {
            UnsignedInteger.fromIntBits(a).mod(UnsignedInteger.ZERO);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MultisetsTest.java

      }
    
      @SuppressWarnings("deprecation")
      public void testUnmodifiableMultisetShortCircuit() {
        Multiset<String> mod = HashMultiset.create();
        Multiset<String> unmod = Multisets.unmodifiableMultiset(mod);
        assertNotSame(mod, unmod);
        assertSame(unmod, Multisets.unmodifiableMultiset(unmod));
        ImmutableMultiset<String> immutable = ImmutableMultiset.of("a", "a", "b", "a");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

      @GwtIncompatible // NavigableMap
      public void testUnmodifiableNavigableMap() {
        TreeMap<Integer, String> mod = Maps.newTreeMap();
        mod.put(1, "one");
        mod.put(2, "two");
        mod.put(3, "three");
    
        NavigableMap<Integer, String> unmod = unmodifiableNavigableMap(mod);
    
        /* unmod is a view. */
        mod.put(4, "four");
        assertEquals("four", unmod.get(4));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTest.java

      @GwtIncompatible // NavigableMap
      public void testUnmodifiableNavigableMap() {
        TreeMap<Integer, String> mod = Maps.newTreeMap();
        mod.put(1, "one");
        mod.put(2, "two");
        mod.put(3, "three");
    
        NavigableMap<Integer, String> unmod = unmodifiableNavigableMap(mod);
    
        /* unmod is a view. */
        mod.put(4, "four");
        assertEquals("four", unmod.get(4));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/IntMathTest.java

          for (int m : POSITIVE_INTEGER_CANDIDATES) {
            assertEquals(valueOf(x).mod(valueOf(m)).intValue(), IntMath.mod(x, m));
          }
        }
      }
    
      public void testModNegativeModulusFails() {
        for (int x : POSITIVE_INTEGER_CANDIDATES) {
          for (int m : NEGATIVE_INTEGER_CANDIDATES) {
            try {
              IntMath.mod(x, m);
              fail("Expected ArithmeticException");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

          // we should get an ExecutionException; if we call getUnchecked(), we should get an
          // UncheckedExecutionException.
          int mod = i % 3;
          if (mod == 0 || mod == 2) {
            assertThat(result.get(i)).isInstanceOf(ExecutionException.class);
            assertThat((ExecutionException) result.get(i)).hasCauseThat().isSameInstanceAs(e);
          } else {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/LongMathTest.java

          for (int m : POSITIVE_INTEGER_CANDIDATES) {
            assertEquals(valueOf(x).mod(valueOf(m)).intValue(), LongMath.mod(x, m));
          }
        }
      }
    
      @GwtIncompatible // TODO
      public void testIntModNegativeModulusFails() {
        for (long x : ALL_LONG_CANDIDATES) {
          for (int m : NEGATIVE_INTEGER_CANDIDATES) {
            try {
              LongMath.mod(x, m);
              fail("Expected ArithmeticException");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MultisetsTest.java

      }
    
      @SuppressWarnings("deprecation")
      public void testUnmodifiableMultisetShortCircuit() {
        Multiset<String> mod = HashMultiset.create();
        Multiset<String> unmod = Multisets.unmodifiableMultiset(mod);
        assertNotSame(mod, unmod);
        assertSame(unmod, Multisets.unmodifiableMultiset(unmod));
        ImmutableMultiset<String> immutable = ImmutableMultiset.of("a", "a", "b", "a");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 11.3K bytes
    - Viewed (0)
Back to top