- 
      
- 
        Save asierba/1f20f5fdebf77db32cb7 to your computer and use it in GitHub Desktop. 
  
    
      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