KATA TIME™ - Sorting the Triangle!

Session 2 - "These triangles ain't gonna sort themselves!" - Hannah Montana

Today's Kata

Triangle Sorter

"A triangle is a polygon with three edges and three vertices."

- Wikipedia

"If triangles invented a god, they would make him three-sided."

- Baron de Montesquieu

The goal of this kata is to take 3 integer values that represent the lengths of three sides of a triangle and return a String representation of the triangle's classification. The 5 classifications we are looking for will be 'equilateral', 'isosceles', 'right', 'other', and 'not a triangle'.

Today's Goals

  • Doing the simplest thing to make a test pass.
  • Discuss ordering of test cases.
  • Making sure edge cases are tested.
  • Playing with lists.
  • Advanced refactoring of test classes.

Code Along Repo Link

Session Video

Session Code