ran gofmt -s

simplify things after having run gofmt -s
This commit is contained in:
dm
2016-08-29 10:27:36 -07:00
committed by dm
parent 0f44030e53
commit 634cd011c0
5 changed files with 70 additions and 70 deletions
+4 -4
View File
@@ -10,10 +10,10 @@ func TestDistance(t *testing.T) {
p []Point
expected float64
}{
{[]Point{Point{1, 1}, Point{4, 5}}, 5},
{[]Point{Point{-1, -1}, Point{2, 3}}, 5},
{[]Point{Point{1, 1}, Point{2, 2}}, math.Sqrt(2)},
{[]Point{Point{1, 1}, Point{40, 20}}, math.Sqrt(1882)},
{[]Point{{1, 1}, {4, 5}}, 5},
{[]Point{{-1, -1}, {2, 3}}, 5},
{[]Point{{1, 1}, {2, 2}}, math.Sqrt(2)},
{[]Point{{1, 1}, {40, 20}}, math.Sqrt(1882)},
}
for _, rt := range distanceTest {
actual := distance(rt.p[0], rt.p[1])