Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 16 of 16 for expectedMin (0.25 seconds)

  1. guava-tests/test/com/google/common/hash/HashCodeTest.java

        HashCode hashCode = HashCode.fromBytes(bytes);
        int expectedInt = 0x0000abcd;
        String expectedToString = "cdab0000";
    
        assertEquals(expectedInt, hashCode.asInt());
        assertThat(hashCode.toString()).isEqualTo(expectedToString);
    
        bytes[0] = (byte) 0x00;
    
        assertEquals(expectedInt, hashCode.asInt());
        assertThat(hashCode.toString()).isEqualTo(expectedToString);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

            Trans2FindNext2 next = new Trans2FindNext2(sid, resumeKey, name);
    
            int expectedLen = 2 + 2 + 2 + 4 + 2 + name.length() + 1;
            byte[] dst = new byte[expectedLen];
    
            // When
            int len = next.writeParametersWireFormat(dst, 0);
    
            // Then
            assertEquals(expectedLen, len, "Unexpected parameters length");
    
            // sid (2 bytes, LE)
            assertEquals((byte) 0x34, dst[0]);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

        void testReadParameterWords(int expectedInt, byte[] bytes) {
            // The implementation reads via SMBUtil.readInt4 which returns an int
            // When assigned to a long field, it gets sign-extended
            int readLen = response.readParameterWordsWireFormat(bytes, 0);
            long expectedOffset = expectedInt; // Sign extension happens here for negative values
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerTest.kt

        val certificatePinner = builder.build()
        val expectedPins =
          Arrays.asList(
            CertificatePinner.Pin("example.com", certA1Sha256Pin),
            CertificatePinner.Pin("www.example.com", certA1Sha256Pin),
          )
        assertEquals(expectedPins, builder.pins)
        assertEquals(HashSet(expectedPins), certificatePinner.pins)
      }
    
      companion object {
        val certA1 =
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        HashCode hashCode = HashCode.fromBytes(bytes);
        int expectedInt = 0x0000abcd;
        String expectedToString = "cdab0000";
    
        assertEquals(expectedInt, hashCode.asInt());
        assertThat(hashCode.toString()).isEqualTo(expectedToString);
    
        bytes[0] = (byte) 0x00;
    
        assertEquals(expectedInt, hashCode.asInt());
        assertThat(hashCode.toString()).isEqualTo(expectedToString);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/math/LongMathTest.java

      // Depends on the correctness of BigIntegerMath.factorial.
      @GwtIncompatible // TODO
      public void testFactorial() {
        for (int n = 0; n <= 50; n++) {
          BigInteger expectedBig = BigIntegerMath.factorial(n);
          long expectedLong = fitsInLong(expectedBig) ? expectedBig.longValue() : Long.MAX_VALUE;
          assertEquals(expectedLong, LongMath.factorial(n));
        }
      }
    
      @GwtIncompatible // TODO
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 30 14:15:36 GMT 2025
    - 31.4K bytes
    - Click Count (0)
Back to Top