Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TestRoundTrip (0.04 sec)

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

        HashCode hash1 = Hashing.sha1().hashString("foo", US_ASCII);
        HashCode hash2 = HashCode.fromString(hash1.toString());
        assertEquals(hash1, hash2);
      }
    
      public void testRoundTrip() {
        for (ExpectedHashCode expected : expectedHashCodes) {
          String string = HashCode.fromBytes(expected.bytes).toString();
          assertEquals(expected.toString, string);
          assertEquals(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        HashCode hash1 = Hashing.sha1().hashString("foo", US_ASCII);
        HashCode hash2 = HashCode.fromString(hash1.toString());
        assertEquals(hash1, hash2);
      }
    
      public void testRoundTrip() {
        for (ExpectedHashCode expected : expectedHashCodes) {
          String string = HashCode.fromBytes(expected.bytes).toString();
          assertEquals(expected.toString, string);
          assertEquals(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

        }
    
        /**
         * Test round-trip encoding and decoding
         */
        @Test
        @DisplayName("Round-trip encode and decode should preserve data")
        void testRoundTrip() throws CIFSException {
            List<AvPair> originalPairs = new LinkedList<>();
            originalPairs.add(new AvFlags(0x12345678));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. src/archive/tar/tar_test.go

    	}
    	if g, e := h.Linkname, target; g != e {
    		t.Errorf("Linkname = %q; want %q", g, e)
    	}
    	if g, e := h.Typeflag, byte(TypeSymlink); g != e {
    		t.Errorf("Typeflag = %v; want %v", g, e)
    	}
    }
    
    func TestRoundTrip(t *testing.T) {
    	data := []byte("some file contents")
    
    	var b bytes.Buffer
    	tw := NewWriter(&b)
    	hdr := &Header{
    		Name:       "file.txt",
    		Uid:        1 << 21, // Too big for 8 octal digits
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top