Created
January 23, 2015 11:20
-
-
Save codingnirvana/61048ddeecdb739008da to your computer and use it in GitHub Desktop.
Debugging Challenge #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
| object Foo extends App{ | |
| val TAKE_COUNT = 5 | |
| def filterFirstFive(xs: List[Int]) = xs.take(TAKE_COUNT) | |
| } | |
| object FooSpec extends App { | |
| assert(Foo.filterFirstFive(List(1,2,3,4,5,6)).size == 5) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment