- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for testConstant (0.09 seconds)
-
guava-tests/test/com/google/common/base/FunctionsTest.java
} @J2ktIncompatible @GwtIncompatible // SerializableTester public void testForPredicateSerializable() { checkCanReserialize(Functions.forPredicate(Predicates.equalTo(5))); } public void testConstant() { Function<@Nullable Object, Object> f = Functions.<Object>constant("correct"); assertEquals("correct", f.apply(new Object())); assertEquals("correct", f.apply(null));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 16.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/FunctionsTest.java
} @J2ktIncompatible @GwtIncompatible // SerializableTester public void testForPredicateSerializable() { checkCanReserialize(Functions.forPredicate(Predicates.equalTo(5))); } public void testConstant() { Function<@Nullable Object, Object> f = Functions.<Object>constant("correct"); assertEquals("correct", f.apply(new Object())); assertEquals("correct", f.apply(null));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 16.2K bytes - Click Count (0) -
lib/fips140/v1.26.0.zip
*testing.T) { for x := range uint32(q) { r, _ := fieldToMontgomery(x) got := fieldInfinityNorm(r) exp := CenteredMod(x, q) if exp < 0 { exp = -exp } if got != uint32(exp) { t.Fatalf("fieldInfinityNorm(%d) = %d, expected %d", x, got, exp) } } } func TestConstants(t *testing.T) { if fieldFromMontgomery(one) != 1 { t.Errorf("one constant incorrect") } if fieldFromMontgomery(minusOne) != q-1 { t.Errorf("minusOne constant incorrect") } if fieldInfinityNorm(one) != 1 { t.Errorf("one infinity norm incorrect")...Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Jan 08 17:58:32 GMT 2026 - 660.3K bytes - Click Count (0)