Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMarshalTypeMismatch (0.17 sec)

  1. src/crypto/sha256/sha256_test.go

    				if actual, actual2 := h.Sum(nil), h2.Sum(nil); !bytes.Equal(actual, actual2) {
    					t.Errorf("sha%s(%q) = 0x%x != marshaled 0x%x", tt.name, g.in, actual, actual2)
    				}
    			}
    		})
    	}
    }
    
    func TestMarshalTypeMismatch(t *testing.T) {
    	h1 := New()
    	h2 := New224()
    
    	state1, err := h1.(encoding.BinaryMarshaler).MarshalBinary()
    	if err != nil {
    		t.Errorf("could not marshal: %v", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 21:21:42 UTC 2023
    - 34.8K bytes
    - Viewed (0)
Back to top