Advertisement
Guest User

scala canonical List representation

a guest
Jun 16th, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.23 KB | None | 0 0
  1. @RunWith(classOf[JUnitRunner])
  2. class TestSuite extends FunSuite {
  3.   test("List with empty String") {
  4.     assert(List[Word]("") === List())
  5.     // org.scalatest.exceptions.TestFailedException: List() did not equal List()
  6.   }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement