Skip to content
Snippets Groups Projects
Commit e754b929 authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

Fix testcase

parent 1cef4fa5
No related branches found
No related tags found
No related merge requests found
...@@ -28,10 +28,10 @@ sealed abstract class List0[T] { ...@@ -28,10 +28,10 @@ sealed abstract class List0[T] {
case Cons0(x, xs) => xs ++ that // FIXME did not Cons case Cons0(x, xs) => xs ++ that // FIXME did not Cons
}) ensuring { res => }) ensuring { res =>
res.content == this.content ++ that.content && res.content == this.content ++ that.content &&
res.size == this.size + that.size && res.size == this.size + that.size/* &&
(((this, that), res) passes { (((this, that), res) passes {
case ( x@Cons0(x1, Cons0(x2, Nil0())), y) => x case ( x@Cons0(x1, Cons0(x2, Nil0())), y) => x
}) })*/
} }
def head: T = { def head: T = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment