Skip to content

Instantly share code, notes, and snippets.

@sleepyfox
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sleepyfox/c7beaff22300395b1708 to your computer and use it in GitHub Desktop.
Save sleepyfox/c7beaff22300395b1708 to your computer and use it in GitHub Desktop.
Test stub for ScalaTest for London Code Dojo 7L7W Scala day 1
name := "Name goes here"
version := "0.0.1"
libraryDependencies += "org.scalatest" % "scalatest_2.10" % "2.0" % "test"
// src/test/scala/testTextSizer.scala
import org.scalatest._
class TestTextSizer extends FunSpec with ShouldMatchers {
def sizer(x : List[Char]) = {
0
}
describe("A text sizer") {
it("should give length zero") {
sizer(List()) should be (0)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment