Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Expected (0.28 sec)

  1. tests/generics_test.go

    	}
    
    	if len(results) != 2 {
    		t.Errorf("expected 2 distinct names, got %d", len(results))
    	}
    
    	var names []string
    	for _, u := range results {
    		names = append(names, u.Name)
    	}
    	sort.Strings(names)
    	expected := []string{"GenericsDistinctDup", "GenericsDistinctUnique"}
    	if !reflect.DeepEqual(names, expected) {
    		t.Errorf("expected names %v, got %v", expected, names)
    	}
    }
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 28K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java

     */
    public class CrawlerStatusTest extends PlainTestCase {
    
        /**
         * Test that all expected enum values exist
         */
        public void test_enumValues() {
            CrawlerStatus[] values = CrawlerStatus.values();
    
            assertNotNull(values);
            assertEquals(3, values.length);
    
            // Verify all expected values exist
            assertEquals(CrawlerStatus.INITIALIZING, values[0]);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/AbstractTransformerTest.java

                }
            };
    
            Object data = testTransformer.getData(accessResultData);
            byte[] expected = "test data".getBytes();
            byte[] actual = (byte[]) data;
            assertEquals(expected.length, actual.length);
            for (int i = 0; i < expected.length; i++) {
                assertEquals(expected[i], actual[i]);
            }
    
            // Test with null
            assertNull(testTransformer.getData(null));
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java

            } catch (IndexOutOfBoundsException e) {
                // Expected
            }
    
            try {
                ruleManager.addRule(5, rule2);
                fail("Should throw IndexOutOfBoundsException for index > size");
            } catch (IndexOutOfBoundsException e) {
                // Expected
            }
        }
    
        /**
         * Test adding null rule at index
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 23.8K bytes
    - Viewed (0)
  5. src/archive/tar/strconv_test.go

    		b.Run(tt.name, func(b *testing.B) {
    			b.ReportAllocs()
    			for b.Loop() {
    				ts, err := parsePAXTime(tt.in)
    				if (err == nil) != tt.ok {
    					if err != nil {
    						b.Fatal(err)
    					}
    					b.Fatal("expected error")
    				}
    				if !ts.Equal(tt.want) {
    					b.Fatalf("time mismatch: got %v, want %v", ts, tt.want)
    				}
    			}
    		})
    	}
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Sep 08 17:08:20 UTC 2025
    - 15K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/filter/UrlFilterTest.java

            try {
                urlFilter.processUrl(null);
                // Should handle null gracefully or throw appropriate exception
            } catch (NullPointerException e) {
                // Expected behavior for null input
                assertTrue(true);
            }
        }
    
        /**
         * Test processUrl with empty URL
         */
        public void test_processUrl_emptyUrl() {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/TypeResolver.java

              // Checking subtype between declared and actual type bounds
              // adds recursive isSubtypeOf() call and feels complicated.
              // There is no contract one way or another as long as isSubtypeOf() works as expected.
              combined.addAll(asList(typeParam.getBounds()));
              if (combined.size() > 1) { // Object is implicit and only useful if it's the only bound.
                combined.remove(Object.class);
              }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java

            factory.setComponentName(null);
    
            try {
                factory.create();
                fail("Should throw exception for null component name");
            } catch (Exception e) {
                // Expected behavior
                assertTrue(true);
            }
        }
    
        /**
         * Test creation with invalid component name
         */
        public void test_create_invalidComponentName() {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java

            try {
                ruleWithoutContainer.register(0);
                fail("Should throw exception with null container");
            } catch (NullPointerException e) {
                // Expected
            }
        }
    
        /**
         * Test concurrent property access
         */
        public void test_concurrentPropertyAccess() throws Exception {
            final int threadCount = 10;
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  10. cmd/erasure-multipart.go

    		if opts.WantChecksum != nil && !opts.WantChecksum.Type.Is(checksumType) {
    			return oi, InvalidArgument{
    				Bucket: bucket,
    				Object: fi.Name,
    				Err:    fmt.Errorf("checksum type mismatch. got %q (%s) expected %q (%s)", checksumType.String(), checksumType.ObjType(), opts.WantChecksum.Type.String(), opts.WantChecksum.Type.ObjType()),
    			}
    		}
    		checksumType |= hash.ChecksumMultipart | hash.ChecksumIncludesMultipart
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 47.3K bytes
    - Viewed (0)
Back to top