Skip to content

Commit

Permalink
Properly minimize code using gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
fako1024 committed Sep 15, 2020
1 parent cb63cec commit c999142
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions numerics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ func TestBetaComplete(t *testing.T) {
{5.50, 5.00, 0.0011084890341856285488},
{10.00, 0.50, 0.56754638550304181699},
{10.00, 5.00, 0.000099900099900099900013},
{10.00, 10.00, 1.0825088224469028797E-6},
{20.00, 5.00, 4.7054394880481842855E-6},
{20.00, 10.00, 4.9925087406346786552E-9},
{20.00, 20.00, 7.2544445519248445760E-13},
{30.00, 10.00, 1.5729567312509353417E-10},
{40.00, 20.00, 1.7891885039182104013E-17},
{10.00, 10.00, 1.0825088224469028797e-6},
{20.00, 5.00, 4.7054394880481842855e-6},
{20.00, 10.00, 4.9925087406346786552e-9},
{20.00, 20.00, 7.2544445519248445760e-13},
{30.00, 10.00, 1.5729567312509353417e-10},
{40.00, 20.00, 1.7891885039182104013e-17},
{1.31, 11.76, 0.034893647244516490247},
}

Expand All @@ -53,15 +53,15 @@ func TestBetaIncomplete(t *testing.T) {
var testTableBetaIncomplete = []testCaseBetaIncomplete{
{-1., 0.50, 0.50, math.NaN()},
{10., 0.50, 0.50, math.NaN()},
{0.01, 0.50, 0.50, 0.6376856085851985E-01},
{0.01, 0.50, 0.50, 0.6376856085851985e-01},
{0.10, 0.50, 0.50, 0.2048327646991335},
{1.00, 0.50, 0.50, 1.000000000000000},
{0.00, 1.00, 0.50, 0.000000000000000},
{0.01, 1.00, 0.50, 0.5012562893380045E-02},
{0.10, 1.00, 0.50, 0.5131670194948620E-01},
{0.01, 1.00, 0.50, 0.5012562893380045e-02},
{0.10, 1.00, 0.50, 0.5131670194948620e-01},
{0.50, 1.00, 0.50, 0.2928932188134525},
{0.50, 1.00, 1.00, 0.5000000000000000},
{0.10, 2.00, 2.00, 0.2800000000000000E-01},
{0.10, 2.00, 2.00, 0.2800000000000000e-01},
{0.20, 2.00, 2.00, 0.1040000000000000},
{0.30, 2.00, 2.00, 0.2160000000000000},
{0.40, 2.00, 2.00, 0.3520000000000000},
Expand All @@ -72,7 +72,7 @@ func TestBetaIncomplete(t *testing.T) {
{0.90, 2.00, 2.00, 0.9720000000000000},
{0.50, 5.50, 5.00, 0.4361908850559777},
{0.90, 10.00, 0.50, 0.1516409096347099},
{0.50, 10.00, 5.00, 0.8978271484375000E-01},
{0.50, 10.00, 5.00, 0.8978271484375000e-01},
{1.00, 10.00, 5.00, 1.000000000000000},
{0.50, 10.00, 10.00, 0.5000000000000000},
{0.80, 20.00, 5.00, 0.4598773297575791},
Expand All @@ -83,7 +83,7 @@ func TestBetaIncomplete(t *testing.T) {
{0.70, 30.00, 10.00, 0.2241297491808366},
{0.80, 30.00, 10.00, 0.7586405487192086},
{0.70, 40.00, 20.00, 0.7001783247477069},
{0.10, 1.00, 0.50, 0.5131670194948620E-01},
{0.10, 1.00, 0.50, 0.5131670194948620e-01},
{0.20, 1.00, 0.50, 0.1055728090000841},
{0.30, 1.00, 0.50, 0.1633399734659245},
{0.40, 1.00, 0.50, 0.2254033307585166},
Expand All @@ -92,14 +92,14 @@ func TestBetaIncomplete(t *testing.T) {
{0.20, 1.00, 4.00, 0.5904000000000000},
{0.20, 1.00, 5.00, 0.6723200000000000},
{0.30, 2.00, 2.00, 0.2160000000000000},
{0.30, 3.00, 2.00, 0.8370000000000000E-01},
{0.30, 4.00, 2.00, 0.3078000000000000E-01},
{0.30, 5.00, 2.00, 0.1093500000000000E-01},
{0.30, 3.00, 2.00, 0.8370000000000000e-01},
{0.30, 4.00, 2.00, 0.3078000000000000e-01},
{0.30, 5.00, 2.00, 0.1093500000000000e-01},
{0.23, 1.31, 11.76, 0.9234481429287121346},
{0.03, 1.31, 11.76, 0.1846748359068621226},
{0.03, 1.31, 11.76, 0.1846748359068621226},
{0.5, -1E99, -1E99, math.NaN()},
{0.5, 1E99, 1E99, math.NaN()},
{0.5, -1e99, -1e99, math.NaN()},
{0.5, 1e99, 1e99, math.NaN()},
}

for _, cs := range testTableBetaIncomplete {
Expand Down Expand Up @@ -168,8 +168,8 @@ func TestBinomial(t *testing.T) {
{0.23, 1.31, 11.76, 0.03180199993749933257},
{0.03, 1.31, 11.76, 0.23792711924420170688},
{0.03, 1.31, 11.76, 0.23792711924420170688},
{0.5, -1E99, -1E99, math.Inf(1)},
{0.5, 1E99, 1E99, 0.},
{0.5, -1e99, -1e99, math.Inf(1)},
{0.5, 1e99, 1e99, 0.},
}

for _, cs := range testTableBinomial {
Expand Down

0 comments on commit c999142

Please sign in to comment.