/hvac-scala

TDDing Uncle Bob's HVAC kata while picking up scala.

Primary LanguageShellOtherNOASSERTION

Scala TDD Example

TDDing Uncle Bob's HVAC kata while picking up scala.

Requirements:

  1. if it's cold (less than 65 degrees) => heat
  2. if it's hot (greater than 75 degrees) => cool
  3. after the heater stops => run the fan for five more minutes
  4. after cooler stops => don't turn it back on for three minutes

To run

sbt test

or run this while tweaking the code to auto compile and test:

sbt
~ test