
InClass Exercise
TDD on Triangle SWE 437, Spring 2018 26 February 
This is an inclass group exercise. Work with some of your near neighbors. Print all names on the top of the page.
Consider the Triangle
program,
which has been used in interviews and in research papers for decades.
Triangle
has a very simple function:
Given three linesegment lengths S1, S2, and S3,
what kind of triangle do they form?

Try Koskela’s TDD approach as he did in Chapter 2. Preliminary planning:
Now, let’s turn to adding functionality with TDD. Write a test for the triangle method.