- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 113 for testMod (0.07 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
android/guava/src/com/google/common/collect/ForwardingObject.java
* object being tested for equality to the custom interface. {@code ForwardingObject} implements no * such custom interfaces directly; they are implemented only in subclasses. Therefore, forwarding * {@code equals} would break symmetry, as the forwarding object might consider itself equal to the * object being tested, but the reverse could not be true. This behavior is consistent with the
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestCollectionGenerator.java
import java.util.Collection; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Creates collections, containing sample elements, to be tested. * * @author Kevin Bourrillion */ @GwtCompatible @NullMarked public interface TestCollectionGenerator<E extends @Nullable Object>
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1K bytes - Viewed (0)