Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestRoundUp (0.08 sec)

  1. src/crypto/tls/conn_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package tls
    
    import (
    	"bytes"
    	"io"
    	"net"
    	"testing"
    )
    
    func TestRoundUp(t *testing.T) {
    	if roundUp(0, 16) != 0 ||
    		roundUp(1, 16) != 16 ||
    		roundUp(15, 16) != 16 ||
    		roundUp(16, 16) != 16 ||
    		roundUp(17, 16) != 32 {
    		t.Error("roundUp broken")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:35:01 UTC 2023
    - 10.5K bytes
    - Viewed (0)
Back to top