ran gofmt -s
simplify things after having run gofmt -s
This commit is contained in:
+3
-3
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user