Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testcerts (0.26 sec)

  1. src/crypto/tls/handshake_client_test.go

    u58=
    -----END CERTIFICATE-----`
    
    func TestHandshakeRSATooBig(t *testing.T) {
    	testCert, _ := pem.Decode([]byte(largeRSAKeyCertPEM))
    
    	c := &Conn{conn: &discardConn{}, config: testConfig.Clone()}
    
    	expectedErr := "tls: server sent certificate containing RSA key larger than 8192 bits"
    	err := c.verifyServerCertificate([][]byte{testCert.Bytes})
    	if err == nil || err.Error() != expectedErr {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  2. src/math/all_test.go

    		if f := Atan2(vfatan2SC[i][0], vfatan2SC[i][1]); !alike(atan2SC[i], f) {
    			t.Errorf("Atan2(%g, %g) = %g, want %g", vfatan2SC[i][0], vfatan2SC[i][1], f, atan2SC[i])
    		}
    	}
    }
    
    func TestCbrt(t *testing.T) {
    	for i := 0; i < len(vf); i++ {
    		if f := Cbrt(vf[i]); !veryclose(cbrt[i], f) {
    			t.Errorf("Cbrt(%g) = %g, want %g", vf[i], f, cbrt[i])
    		}
    	}
    	for i := 0; i < len(vfcbrtSC); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
Back to top