Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 63 for Comparison (0.07 seconds)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtilsTest.java

                return Stream.of(Arguments.of(null, "4.1.0"), Arguments.of("4.0.0", null), Arguments.of(null, null));
            }
        }
    
        @Nested
        @DisplayName("Version Comparison")
        class VersionComparisonTests {
    
            @Test
            @DisplayName("should compare versions correctly")
            void shouldCompareVersionsCorrectly() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 19.6K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/ServiceTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    /** Unit tests for {@link Service} */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class ServiceTest extends TestCase {
    
      /** Assert on the comparison ordering of the State enum since we guarantee it. */
      public void testStateOrdering() {
        // List every valid (direct) state transition.
        assertLessThan(NEW, STARTING);
        assertLessThan(NEW, TERMINATED);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 2.1K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/ServiceTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    /** Unit tests for {@link Service} */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class ServiceTest extends TestCase {
    
      /** Assert on the comparison ordering of the State enum since we guarantee it. */
      public void testStateOrdering() {
        // List every valid (direct) state transition.
        assertLessThan(NEW, STARTING);
        assertLessThan(NEW, TERMINATED);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 2.1K bytes
    - Click Count (0)
  4. src/cmd/asm/internal/arch/arm64.go

    // IsARM64ADR reports whether the op (as defined by an arm64.A* constant) is
    // one of the comparison instructions that require special handling.
    func IsARM64ADR(op obj.As) bool {
    	switch op {
    	case arm64.AADR, arm64.AADRP:
    		return true
    	}
    	return false
    }
    
    // IsARM64CMP reports whether the op (as defined by an arm64.A* constant) is
    // one of the comparison instructions that require special handling.
    func IsARM64CMP(op obj.As) bool {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Mar 20 17:02:17 GMT 2026
    - 6K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java

                // Update property value if it's below minimum version
                return upgradePropertyVersion(pomDocument, propertyName, upgrade, sectionName, context);
            } else {
                // Direct version comparison and upgrade
                if (isVersionBelow(currentVersion, upgrade.minVersion)) {
                    Editor editor = new Editor(pomDocument);
                    editor.setTextContent(versionElement, upgrade.minVersion);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 37K bytes
    - Click Count (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtils.java

         */
        public static boolean isNewerThan410(String modelVersion) {
            if (modelVersion == null) {
                return false;
            }
    
            // Simple version comparison for now
            // This could be enhanced with proper version parsing if needed
            try {
                String[] parts = modelVersion.split("\\.");
                if (parts.length >= 2) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/dict/mapping/CharMappingItem.java

        public boolean isDeleted() {
            return isUpdated() && newInputs.length == 0;
        }
    
        /**
         * Sorts both the current inputs and new inputs arrays in place.
         * This ensures consistent ordering for comparison and equality operations.
         */
        public void sort() {
            if (inputs != null) {
                Arrays.sort(inputs);
            }
            if (newInputs != null) {
                Arrays.sort(newInputs);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/crawler/FessCrawlerThreadTest.java

            Set<RequestData> result = crawlerThread.getAnchorSet(urls);
            assertNotNull(result, "getAnchorSet should handle duplicates");
    
            // Since it returns a Set, duplicates should be handled by URL comparison
            // The exact behavior depends on RequestData.equals() implementation
            assertTrue("Should have at most 5 items", result.size() <= 5);
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 9.3K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java

            assertTrue(item1.equals(item2));
        }
    
        @Test
        public void test_equals_withNullInput() {
            // Test equals with null input - should not throw, uses null-safe comparison
            StopwordsItem item1 = new StopwordsItem(1, null);
            StopwordsItem item2 = new StopwordsItem(2, null);
            StopwordsItem item3 = new StopwordsItem(1, "word");
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.4K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java

            assertTrue(item2.equals(item1));
        }
    
        @Test
        public void test_equals_withNullInput() {
            // Test equals with null input - should not throw, uses null-safe comparison
            ProtwordsItem item1 = new ProtwordsItem(1, null);
            ProtwordsItem item2 = new ProtwordsItem(2, null);
            ProtwordsItem item3 = new ProtwordsItem(1, "word");
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 10.7K bytes
    - Click Count (0)
Back to Top