exercism/go/triangle
Brian Buller 50f4a86fd8 Initial Commit 2016-08-13 18:20:14 -05:00
..
README.md Initial Commit 2016-08-13 18:20:14 -05:00
triangle.go Initial Commit 2016-08-13 18:20:14 -05:00
triangle_test.go Initial Commit 2016-08-13 18:20:14 -05:00

README.md

Triangle

Write a program that can tell you if a triangle is equilateral, isosceles, or scalene.

The program should raise an error if the triangle cannot exist.

Tests are provided, delete one skip at a time.

Hint

The sum of the lengths of any two sides of a triangle always exceeds the length of the third side, a principle known as the triangle inequality.

To run the tests simply run the command go test in the exercise directory.

If the test suite contains benchmarks, you can run these with the -bench flag:

go test -bench .

For more detailed info about the Go track see the help page.

Source

The Ruby Koans triangle project, parts 1 & 2 view source