Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for testMod (0.29 sec)

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

              ArithmeticException.class,
              () -> {
                UnsignedInteger unused = UnsignedInteger.fromIntBits(a).dividedBy(UnsignedInteger.ZERO);
              });
        }
      }
    
      public void testMod() {
        for (int a : TEST_INTS) {
          for (int b : TEST_INTS) {
            if (b != 0) {
              UnsignedInteger aUnsigned = UnsignedInteger.fromIntBits(a);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/IntMathTest.java

          for (RoundingMode mode : ALL_ROUNDING_MODES) {
            assertThrows(ArithmeticException.class, () -> IntMath.divide(p, 0, mode));
          }
        }
      }
    
      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));
          }
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/LongMathTest.java

        for (long x : ALL_LONG_CANDIDATES) {
          assertThrows(ArithmeticException.class, () -> LongMath.mod(x, 0));
        }
      }
    
      @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));
          }
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

            // The actual exception handling is tested by ensuring the updater can be created
            // and properly closed even when errors might occur
    
            protwordsFile.reload(null);
    
            // Test normal creation and cleanup of ProtwordsUpdater
            ProtwordsItem testItem = new ProtwordsItem(0, "testWord");
            ProtwordsFile.ProtwordsUpdater updater = null;
    
            try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

                assertTrue(generator.generate("test_id", outputFile));
            } finally {
                outputFile.delete();
            }
        }
    
        public void test_generate_outputFile_null() throws Exception {
            generator.setCommandList(Collections.singletonList("echo test"));
            try {
                generator.generate("test_id", null);
                fail("Should throw exception for null output file");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java

        public void test_constructor_withIdZero() {
            // Test constructor with id = 0 (create mode)
            ProtwordsItem item = new ProtwordsItem(0, "testword");
    
            assertEquals(0, item.getId());
            assertEquals("testword", item.getInput());
            assertEquals("testword", item.getNewInput());
        }
    
        public void test_constructor_withNonZeroId() {
            // Test constructor with id != 0 (existing item)
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Predicates.java

            ? Predicates.<T>isNull()
            : new IsEqualToPredicate(target).withNarrowedType();
      }
    
      /**
       * Returns a predicate that evaluates to {@code true} if the object being tested is an instance of
       * the given class. If the object being tested is {@code null} this predicate evaluates to {@code
       * false}.
       *
       * <p>If you want to filter an {@code Iterable} to narrow its type, consider using {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

    import org.jspecify.annotations.Nullable;
    import org.junit.Ignore;
    
    /**
     * Testers for {@link SetMultimap#asMap}.
     *
     * @author Louis Wasserman
     * @param <K> The key type of the tested multimap.
     * @param <V> The value type of the tested multimap.
     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/util/DocMap.java

            return parent.isEmpty();
        }
    
        /**
         * Returns true if this map contains a mapping for the specified key.
         *
         * @param key the key whose presence in this map is to be tested
         * @return true if this map contains a mapping for the specified key
         */
        @Override
        public boolean containsKey(final Object key) {
            return parent.containsKey(key);
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java

    import org.junit.Ignore;
    
    /**
     * Testers for {@link com.google.common.collect.ListMultimap#asMap}.
     *
     * @author Louis Wasserman
     * @param <K> The key type of the tested multimap.
     * @param <V> The value type of the tested multimap.
     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top