Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 173 for Compare (0.26 sec)

  1. src/bytes/compare_test.go

    			copy(shiftedB, tt.b)
    			cmp := Compare(tt.a, shiftedB)
    			if cmp != tt.i {
    				t.Errorf(`Compare(%q, %q), offset %d = %v; want %v`, tt.a, tt.b, offset, cmp, tt.i)
    			}
    		}
    	}
    }
    
    func TestCompareIdenticalSlice(t *testing.T) {
    	var b = []byte("Hello Gophers!")
    	if Compare(b, b) != 0 {
    		t.Error("b != b")
    	}
    	if Compare(b, b[:1]) != 1 {
    		t.Error("b > b[:1] failed")
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 13 23:11:42 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ComparisonChain.java

            public ComparisonChain compare(int left, int right) {
              return classify(Ints.compare(left, right));
            }
    
            @Override
            public ComparisonChain compare(long left, long right) {
              return classify(Longs.compare(left, right));
            }
    
            @Override
            public ComparisonChain compare(float left, float right) {
              return classify(Float.compare(left, right));
            }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 9.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ComparisonChainTest.java

                    .compare("b", "a")
                    .compare(DONT_COMPARE_ME, DONT_COMPARE_ME)
                    .result())
            .isGreaterThan(0);
      }
    
      public void testShortCircuitSecondStep() {
        assertThat(
                ComparisonChain.start()
                    .compare("a", "a")
                    .compare("a", "b")
                    .compare(DONT_COMPARE_ME, DONT_COMPARE_ME)
                    .result())
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ComparisonChainTest.java

                    .compare("b", "a")
                    .compare(DONT_COMPARE_ME, DONT_COMPARE_ME)
                    .result())
            .isGreaterThan(0);
      }
    
      public void testShortCircuitSecondStep() {
        assertThat(
                ComparisonChain.start()
                    .compare("a", "a")
                    .compare("a", "b")
                    .compare(DONT_COMPARE_ME, DONT_COMPARE_ME)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/security/http-basic-auth.md

    #### Fix it with `secrets.compare_digest()`
    
    But in our code we are actually using `secrets.compare_digest()`.
    
    In short, it will take the same time to compare `stanleyjobsox` to `stanleyjobson` than it takes to compare `johndoe` to `stanleyjobson`. And the same for the password.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 14:33:05 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/GeneralRangeTest.java

            assertEquals(
                ORDERING.compare(i, 3) < 0 || (ORDERING.compare(i, 3) == 0 && lBoundType == CLOSED),
                range.contains(i));
            assertEquals(
                ORDERING.compare(i, 3) > 0 || (ORDERING.compare(i, 3) == 0 && lBoundType == OPEN),
                range.tooHigh(i));
            assertFalse(range.tooLow(i));
          }
        }
      }
    
      public void testDoublyBoundedAgainstRange() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  7. operator/cmd/mesh/manifest-diff.go

    	"istio.io/istio/operator/pkg/compare"
    	"istio.io/istio/operator/pkg/util"
    )
    
    // YAMLSuffix is the suffix of a YAML file.
    const YAMLSuffix = ".yaml"
    
    type manifestDiffArgs struct {
    	// compareDir indicates comparison between directory.
    	compareDir bool
    	// verbose generates verbose output.
    	verbose bool
    	// selectResources constrains the list of resources to compare to only the ones in this list, ignoring all others.
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/SignedBytes.java

        }
        return (byte) value;
      }
    
      /**
       * Compares the two specified {@code byte} values. The sign of the value returned is the same as
       * that of {@code ((Byte) a).compareTo(b)}.
       *
       * <p><b>Note:</b> this method behaves identically to the JDK 7 method {@link Byte#compare}.
       *
       * @param a the first {@code byte} to compare
       * @param b the second {@code byte} to compare
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:09:25 GMT 2021
    - 7.5K bytes
    - Viewed (0)
  9. docs/en/docs/benchmarks.md

    But when checking benchmarks and comparisons you should keep the following in mind.
    
    ## Benchmarks and speed
    
    When you check the benchmarks, it is common to see several tools of different types compared as equivalent.
    
    Specifically, to see Uvicorn, Starlette and FastAPI compared together (among many other tools).
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/GeneralRangeTest.java

            assertEquals(
                ORDERING.compare(i, 3) < 0 || (ORDERING.compare(i, 3) == 0 && lBoundType == CLOSED),
                range.contains(i));
            assertEquals(
                ORDERING.compare(i, 3) > 0 || (ORDERING.compare(i, 3) == 0 && lBoundType == OPEN),
                range.tooHigh(i));
            assertFalse(range.tooLow(i));
          }
        }
      }
    
      public void testDoublyBoundedAgainstRange() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top