Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 80 for testMod (0.67 sec)

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

          try {
            UnsignedLong.fromLongBits(a).dividedBy(UnsignedLong.ZERO);
            fail("Expected ArithmeticException");
          } catch (ArithmeticException expected) {
          }
        }
      }
    
      public void testMod() {
        for (long a : TEST_LONGS) {
          for (long b : TEST_LONGS) {
            if (b != 0) {
              UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/IntMathTest.java

            try {
              IntMath.divide(p, 0, mode);
              fail("Expected ArithmeticException");
            } catch (ArithmeticException expected) {
            }
          }
        }
      }
    
      public void testMod() {
        for (int x : ALL_INTEGER_CANDIDATES) {
          for (int m : POSITIVE_INTEGER_CANDIDATES) {
            assertEquals(valueOf(x).mod(valueOf(m)).intValue(), IntMath.mod(x, m));
          }
        }
      }
    
    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)
  3. android/guava-tests/test/com/google/common/math/IntMathTest.java

            try {
              IntMath.divide(p, 0, mode);
              fail("Expected ArithmeticException");
            } catch (ArithmeticException expected) {
            }
          }
        }
      }
    
      public void testMod() {
        for (int x : ALL_INTEGER_CANDIDATES) {
          for (int m : POSITIVE_INTEGER_CANDIDATES) {
            assertEquals(valueOf(x).mod(valueOf(m)).intValue(), IntMath.mod(x, m));
          }
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/LongMathTest.java

            LongMath.mod(x, 0);
            fail("Expected AE");
          } catch (ArithmeticException expected) {
          }
        }
      }
    
      @AndroidIncompatible // slow
      @GwtIncompatible // TODO
      public void testMod() {
        for (long x : ALL_LONG_CANDIDATES) {
          for (long m : POSITIVE_LONG_CANDIDATES) {
            assertEquals(valueOf(x).mod(valueOf(m)).longValue(), LongMath.mod(x, m));
          }
        }
      }
    
    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)
  5. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

          try {
            UnsignedLong.fromLongBits(a).dividedBy(UnsignedLong.ZERO);
            fail("Expected ArithmeticException");
          } catch (ArithmeticException expected) {
          }
        }
      }
    
      public void testMod() {
        for (long a : TEST_LONGS) {
          for (long b : TEST_LONGS) {
            if (b != 0) {
              UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testNot_serialization() {
        checkSerialization(Predicates.not(isOdd()));
      }
    
      /*
       * Tests for all the different flavors of Predicates.and().
       */
    
      public void testAnd_applyNoArgs() {
        assertEvalsToTrue(Predicates.and());
      }
    
      public void testAnd_equalityNoArgs() {
        new EqualsTester()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java

        assertEquals("a", iterator.next());
        try {
          iterator.remove();
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      @SuppressWarnings("DoNotCall")
      public void testAdd() {
        ListIterator<String> iterator = create();
    
        assertTrue(iterator.hasNext());
        assertEquals("a", iterator.next());
        assertEquals("b", iterator.next());
        assertEquals("b", iterator.previous());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java

        assertEquals(ImmutableSet.of(1), testTable.columnKeySet());
      }
    
      public void testColumnMap() {
        assertEquals(ImmutableMap.of(1, ImmutableMap.of('a', "blah")), testTable.columnMap());
      }
    
      public void testRow() {
        assertEquals(ImmutableMap.of(), testTable.row('A'));
        assertEquals(ImmutableMap.of(1, "blah"), testTable.row('a'));
      }
    
      public void testRowKeySet() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/SetAddTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testAdd_supportedPresent() {
        assertFalse("add(present) should return false", getSet().add(e0()));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(value = {SUPPORTS_ADD, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testAdd_supportedNullPresent() {
        E[] array = createArrayWithNullElement();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Predicates.java

       * Returns a predicate that evaluates to {@code true} if the object reference being tested is
       * null.
       */
      @GwtCompatible(serializable = true)
      public static <T extends @Nullable Object> Predicate<T> isNull() {
        return ObjectPredicate.IS_NULL.withNarrowedType();
      }
    
      /**
       * Returns a predicate that evaluates to {@code true} if the object reference being tested is not
       * null.
       */
      @GwtCompatible(serializable = true)
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top