Skip to content

Instantly share code, notes, and snippets.

@lucastorri
Created May 13, 2011 04:10
Show Gist options
  • Save lucastorri/969960 to your computer and use it in GitHub Desktop.
Save lucastorri/969960 to your computer and use it in GitHub Desktop.
import org.scalatest.{FunSuite, BeforeAndAfterEach}
import org.scalatest.matchers.ShouldMatchers
import some.pack.{TicTacToe, Mark, InvalidSquareException, AlreadyMarkedException}
import some.pack.Mark._
class SecondTicTacToeFunSuiteTest extends FunSuite with BeforeAndAfterEach with ShouldMatchers {
private var ttt: TicTacToe = _
override def beforeEach() { ttt = new TicTacToe }
test("the game should not start finished") {
ttt should not be ('finished)
ttt.winner should be (Mark.`_`)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment