Advertisement
pellekrogholt

Untitled

Oct 24th, 2012
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.39 KB | None | 0 0
  1.   test("combine of some leaf list") {
  2.     val leaflist = List(Leaf('e', 1), Leaf('t', 2), Leaf('x', 4))
  3.     assert(combine(leaflist) === List(Fork(Leaf('e',1),Leaf('t',2),List('e', 't'),3), Leaf('x',4)))
  4.   }
  5.  
  6.   test("combine of some leaf list 2") {
  7.     val leaflist = List(Leaf('e', 1), Leaf('t', 2))
  8.     assert(combine(leaflist) === List(Fork(Leaf('e',1),Leaf('t',2),List('e', 't'),3)))
  9.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement