Skip to content

Instantly share code, notes, and snippets.

@nhajratw
Created September 21, 2010 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nhajratw/589109 to your computer and use it in GitHub Desktop.
Save nhajratw/589109 to your computer and use it in GitHub Desktop.
package com.chikli.st
import org.junit.runner.RunWith
import org.scalatest.{FeatureSpec, GivenWhenThen}
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnitRunner])
class GolSpec extends FeatureSpec with GivenWhenThen {
feature("a cell with zero neighbors dies in the next generation") {
given("a cell with zero neighbors")
val cell = 1
when("the generation evolves")
evolve
then("the cell dies")
assert(true)
}
def evolve = { println("evolving...") }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment