nahurst / hvac-scala

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:Other


Languages

Language:Shell 63.8%Language:Scala 36.2%