Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1196)

Unified Diff: src/pkg/rand/rand_test.go

Issue 3991043: code review 3991043: delete float, complex - code changes (Closed)
Patch Set: code review 3991043: delete float, complex - code changes Created 14 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/rand/rand.go ('k') | src/pkg/rand/zipf.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/rand/rand_test.go
===================================================================
--- a/src/pkg/rand/rand_test.go
+++ b/src/pkg/rand/rand_test.go
@@ -131,8 +131,8 @@
}
func TestNonStandardNormalValues(t *testing.T) {
- for sd := float64(0.5); sd < 1000; sd *= 2 {
- for m := float64(0.5); m < 1000; m *= 2 {
+ for sd := 0.5; sd < 1000; sd *= 2 {
+ for m := 0.5; m < 1000; m *= 2 {
for _, seed := range testSeeds {
testNormalDistribution(t, numTestSamples, m, sd, seed)
}
@@ -182,7 +182,7 @@
}
func TestNonStandardExponentialValues(t *testing.T) {
- for rate := float64(0.05); rate < 10; rate *= 2 {
+ for rate := 0.05; rate < 10; rate *= 2 {
for _, seed := range testSeeds {
testExponentialDistribution(t, numTestSamples, rate, seed)
}
« no previous file with comments | « src/pkg/rand/rand.go ('k') | src/pkg/rand/zipf.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b