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
+3 -3
View File
@@ -7,9 +7,9 @@ func TestSizeTriangle(t *testing.T) {
pts []Point
expected float64
}{
{[]Point{Point{-2, 3}, Point{-3, -1}, Point{3, -2}}, 12.5},
{[]Point{Point{0, 0}, Point{1, 1}, Point{0, 1}}, 0.5},
{[]Point{Point{10, 14}, Point{20, 15}, Point{12, 52}}, 189},
{[]Point{{-2, 3}, {-3, -1}, {3, -2}}, 12.5},
{[]Point{{0, 0}, {1, 1}, {0, 1}}, 0.5},
{[]Point{{10, 14}, {20, 15}, {12, 52}}, 189},
}
for _, rt := range sizeTriangleTests {
actual := sizeTriangle(rt.pts[0], rt.pts[1], rt.pts[2])