- Sort Score
- Num 10 results
- Language All
Results 561 - 570 of 1,305 for Expected (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/org/codelibs/fess/helper/SearchHelperTest.java
if ("ja".equals(lang)) hasJa = true; } assertTrue("Should contain expected languages", hasEn || hasJa || languages.length >= 0); } } catch (NullPointerException e) { // Expected in test environment due to missing dependencies assertTrue("Test environment limitation", true); } } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 19.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateDefaultAtomicHelperTest.java
import com.google.common.annotations.J2ktIncompatible; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** * Tests that {@link AggregateFutureState} uses the expected {@code AtomicHelper} implementation. * * <p>We have more thorough testing of {@code AtomicHelper} implementations in {@link * AggregateFutureStateFallbackAtomicHelperTest}. The advantage to this test is that it can runCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 1.5K bytes - Click Count (0) -
src/archive/zip/zip_test.go
} b := buf.Bytes() zf, err := NewReader(bytes.NewReader(b), int64(len(b))) if err != nil { t.Fatalf("got %v, expected nil", err) } zh := zf.File[0].FileHeader if zh.Name != h.Name || zh.Method != h.Method || zh.UncompressedSize64 != uint64(len("hi")) { t.Fatalf("got %q/%d/%d expected %q/%d/%d", zh.Name, zh.Method, zh.UncompressedSize64, h.Name, h.Method, len("hi")) } } // Issue 4302.
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu May 23 01:00:11 GMT 2024 - 19.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
int bytesWritten = request.writeBytesWireFormat(buffer, offset); // Then assertEquals(4, bytesWritten); // Expected wire format: [0x04, 0x00, 0x00, 0x00] byte[] expected = new byte[] { 0x04, 0x00, 0x00, 0x00 }; assertArrayEquals(expected, buffer); } @Test @DisplayName("Should always return 0 for readBytesWireFormat") void testReadBytesWireFormat() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (0) -
src/bytes/reader_test.go
if _, _, err := reader.ReadRune(); err != nil { // should not happen t.Fatal(err) } tt.f(reader) err := reader.UnreadRune() if err == nil { t.Errorf("Unreading after %s: expected error", tt.name) } } } func TestReaderDoubleUnreadRune(t *testing.T) { buf := NewBuffer([]byte("groucho")) if _, _, err := buf.ReadRune(); err != nil { // should not happen t.Fatal(err)
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Mon Dec 13 18:45:54 GMT 2021 - 8K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/StatsTest.java
if (expected == POSITIVE_INFINITY) { assertThat(actual).isPositiveInfinity(); } else if (expected == NEGATIVE_INFINITY) { assertThat(actual).isNegativeInfinity(); } else if (Double.isNaN(expected)) { assertThat(actual).isNaN(); } else { assertThat(actual).isWithin(ALLOWED_ERROR).of(expected); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 33.4K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/common/bytes/PagedBytesReferenceReadVIntBenchmark.java
tmp.writeVInt(Integer.MAX_VALUE - i); } BytesReference pagedBytes = tmp.bytes(); if (pagedBytes instanceof PagedBytesReference == false) { throw new AssertionError("expected PagedBytesReference but saw [" + pagedBytes.getClass() + "]"); } this.streamInput = pagedBytes.streamInput(); } @Benchmark public int readVInt() throws IOException { int res = 0;
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Apr 12 20:25:06 GMT 2021 - 2.2K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/common/bytes/PagedBytesReferenceReadVLongBenchmark.java
tmp.writeVLong(Long.MAX_VALUE - i); } BytesReference pagedBytes = tmp.bytes(); if (pagedBytes instanceof PagedBytesReference == false) { throw new AssertionError("expected PagedBytesReference but saw [" + pagedBytes.getClass() + "]"); } this.streamInput = pagedBytes.streamInput(); } @Benchmark public long readVLong() throws IOException {
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Apr 12 20:25:06 GMT 2021 - 2.2K bytes - Click Count (0) -
cmd/auth-handler_test.go
authT: authTypePostPolicy, }, } // .. Tests all request auth type. for i, testc := range testCases { authT := getRequestAuthType(testc.req) if authT != testc.authT { t.Errorf("Test %d: Expected %d, got %d", i+1, testc.authT, authT) } } } // Test all s3 supported auth types. func TestS3SupportedAuthType(t *testing.T) { type testCase struct { authT authType pass bool }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 15.4K bytes - Click Count (0) -
compat/maven-model/src/test/java/org/apache/maven/model/ScmTest.java
assertFalse(new Scm().equals(null)); new Scm().equals(new Scm()); } @Test void testEqualsIdentity() { Scm thing = new Scm(); assertTrue(thing.equals(thing), "Expected " + thing + " to equal " + thing); } @Test void testToStringNullSafe() { assertNotNull(new Scm().toString()); } @Test public void testToStringNotNonsense() {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 1.9K bytes - Click Count (0)