Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,189 for expectHead (0.07 sec)

  1. internal/event/name_test.go

    1. expectErr := (err != nil)
    2.  
    3. if expectErr != testCase.expectErr {
    4. t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr)
    5. }
    6.  
    7. if !testCase.expectErr {
    8. if !reflect.DeepEqual(data, testCase.expectedData) {
    9. t.Fatalf("test %v: data: expected: %v, got: %v", i+1, string(testCase.expectedData), string(data))
    10. }
    11. }
    12. }
    13. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/conn/IdnDnsResolverTest.java

    1. String host = "www.codelibs.org";
    2. String expected = "www.codelibs.org";
    3. assertEquals(expected, resolver.toAscii(host));
    4.  
    5. host = "テスト.org";
    6. expected = "xn--zckzah.org";
    7. assertEquals(expected, resolver.toAscii(host));
    8.  
    9. host = "xn--zckzah.org";
    10. expected = "xn--zckzah.org";
    11. assertEquals(expected, resolver.toAscii(host));
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. cmd/xl-storage-format_test.go

    1. t.Errorf("Expected the Version to be \"%s\", but got \"%s\".", unMarshalXLMeta.Version, jsoniterXLMeta.Version)
    2. }
    3. if unMarshalXLMeta.Format != jsoniterXLMeta.Format {
    4. t.Errorf("Expected the format to be \"%s\", but got \"%s\".", unMarshalXLMeta.Format, jsoniterXLMeta.Format)
    5. }
    6. if unMarshalXLMeta.Stat.Size != jsoniterXLMeta.Stat.Size {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. internal/config/config_test.go

    1. if len(gotFields) != len(test.expectedFields) {
    2. t.Errorf("Expected keys %d, found %d", len(test.expectedFields), len(gotFields))
    3. }
    4. found := true
    5. for _, field := range gotFields {
    6. _, ok := test.expectedFields[field]
    7. found = found && ok
    8. }
    9. if !found {
    10. t.Errorf("Expected %s, got %s", test.expectedFields, gotFields)
    11. }
    12. })
    13. }
    14. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 18 22:55:17 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

    1. source = Buffer().writeUtf8(multipart),
    2. )
    3.  
    4. assertFailsWith<ProtocolException> {
    5. parts.nextPart()
    6. }.also { expected ->
    7. assertThat(expected).hasMessage("expected at least 1 part")
    8. }
    9. }
    10.  
    11. @Test fun `skip preamble`() {
    12. val multipart =
    13. """
    14. |this is the preamble! it is invisible to application code
    15. |
    16. |--simple boundary
    17. |
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/pseudo_test.go

    1. {"TEXT", "$\"foo\", 0, $1", "TEXT symbol \"<erroneous symbol>\" must be a symbol(SB)"},
    2. {"TEXT", "$0É:0, 0, $1", "expected end of operand, found É"}, // Issue #12467.
    3. {"TEXT", "$:0:(SB, 0, $1", "expected '(', found 0"}, // Issue 12468.
    4. {"TEXT", "@B(SB),0,$0", "expected '(', found B"}, // Issue 23580.
    5. {"TEXT", "foo<ABIInternal>(SB),0", "ABI selector only permitted when compiling runtime, reference was to \"foo\""},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/RangeTest.java

    1. IllegalArgumentException expected =
    2. assertThrows(IllegalArgumentException.class, () -> range.intersection(Range.open(3, 5)));
    3. assertThat(expected).hasMessageThat().contains("connected");
    4. expected =
    5. assertThrows(IllegalArgumentException.class, () -> range.intersection(Range.closed(0, 2)));
    6. assertThat(expected).hasMessageThat().contains("connected");
    7. }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  8. internal/dsync/drwmutex_test.go

    1. locked := testSimpleWriteLock(t, 10*testDrwMutexAcquireTimeout)
    2.  
    3. expected := true
    4. if locked != expected {
    5. t.Errorf("TestSimpleWriteLockAcquired(): \nexpected %#v\ngot %#v", expected, locked)
    6. }
    7. }
    8.  
    9. func TestSimpleWriteLockTimedOut(t *testing.T) {
    10. locked := testSimpleWriteLock(t, testDrwMutexAcquireTimeout)
    11.  
    12. expected := false
    13. if locked != expected {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 24 03:49:07 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  9. cmd/signature-v4-utils_test.go

    1. if expectedHost != extractedHost {
    2. t.Errorf("host header mismatch: expected `%s`, got `%s`", expectedHost, extractedHost)
    3. }
    4. // assert the result with the expected value.
    5. if expectedContentSha256 != extractedContentSha256 {
    6. t.Errorf("x-amz-content-sha256 header mismatch: expected `%s`, got `%s`", expectedContentSha256, extractedContentSha256)
    7. }
    8. if expectedTime != extractedDate {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 05 21:26:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

    1. StringBuilder input = new StringBuilder();
    2. StringBuilder expected = new StringBuilder();
    3. for (int i = 256; i < 1024; i++) {
    4. input.append((char) i);
    5. expected.append("[" + i + "]");
    6. }
    7. assertEquals(expected.toString(), SIMPLE_ESCAPER.escape(input.toString()));
    8. }
    9.  
    10. public void testSurrogatePairs() {
    11. UnicodeEscaper e = SIMPLE_ESCAPER;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top