Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestFloat32 (0.2 sec)

  1. src/encoding/gob/encoder_test.go

    		t.Error(err)
    	}
    }
    
    var testInt int
    var testFloat32 float32
    var testString string
    var testSlice []string
    var testMap map[string]int
    var testArray [7]int
    
    type SingleTest struct {
    	in  any
    	out any
    	err string
    }
    
    var singleTests = []SingleTest{
    	{17, &testInt, ""},
    	{float32(17.5), &testFloat32, ""},
    	{"bike shed", &testString, ""},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  2. src/math/rand/rand_test.go

    		// Be conservative and assume that all mips boards
    		// have emulated floating point.
    		// TODO: detect what it actually has.
    		return true
    	}
    	return false
    }
    
    func TestFloat32(t *testing.T) {
    	// For issue 6721, the problem came after 7533753 calls, so check 10e6.
    	num := int(10e6)
    	// But do the full amount only on builders (not locally).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  3. src/math/rand/v2/rand_test.go

    		// Be conservative and assume that all mips boards
    		// have emulated floating point.
    		// TODO: detect what it actually has.
    		return true
    	}
    	return false
    }
    
    func TestFloat32(t *testing.T) {
    	// For issue 6721, the problem came after 7533753 calls, so check 10e6.
    	num := int(10e6)
    	// But do the full amount only on builders (not locally).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top