Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Example_rand (0.26 sec)

  1. src/math/rand/v2/regress_test.go

    	defer func() {
    		os.Stdout = oldStdout
    	}()
    
    	r, w, err := os.Pipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer r.Close()
    	defer w.Close()
    
    	go func() {
    		os.Stdout = w
    		Example_rand()
    		os.Stdout = oldStdout
    		w.Close()
    	}()
    	out, err := io.ReadAll(r)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	var buf bytes.Buffer
    	fmt.Fprintf(&buf, "\t// Output:\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:03:11 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top