Skip to content

Commit fc90d45

Browse files
committed
better test names
1 parent f1c99d8 commit fc90d45

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sample_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func doTest(t *testing.T, n, space, iters int, tolerance float64) {
3737
}
3838
}
3939

40-
func TestSample1(t *testing.T) { doTest(t, 1, 2, 10000, 0.01) }
41-
func TestSample2(t *testing.T) { doTest(t, 9, 10, 1000, 0.05) }
42-
func TestSample3(t *testing.T) { doTest(t, 50, 100, 1000, 0.15) }
40+
func TestSample_1of2(t *testing.T) { doTest(t, 1, 2, 10000, 0.01) }
41+
func TestSample_9of10(t *testing.T) { doTest(t, 9, 10, 1000, 0.05) }
42+
func TestSample_50of100(t *testing.T) { doTest(t, 50, 100, 1000, 0.15) }
43+
func TestSample_99of100(t *testing.T) { doTest(t, 99, 100, 100, 0.05) }

0 commit comments

Comments
 (0)