Last active
August 29, 2015 14:01
-
-
Save sleepyfox/c7beaff22300395b1708 to your computer and use it in GitHub Desktop.
Test stub for ScalaTest for London Code Dojo 7L7W Scala day 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name := "Name goes here" | |
version := "0.0.1" | |
libraryDependencies += "org.scalatest" % "scalatest_2.10" % "2.0" % "test" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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