Re-format and re-run all acceptance tests.
This commit is contained in:
@@ -5,15 +5,12 @@ pub type LinkedList<a> {
|
||||
|
||||
pub fn size(t: LinkedList<alg>) -> Int {
|
||||
when t is {
|
||||
Empty ->
|
||||
0
|
||||
Node(_, tail) ->
|
||||
1 + size(tail)
|
||||
Empty -> 0
|
||||
Node(_, tail) -> 1 + size(tail)
|
||||
}
|
||||
}
|
||||
|
||||
test foo() {
|
||||
let xs =
|
||||
Node(0, Node(1, Node(2, Empty)))
|
||||
let xs = Node(0, Node(1, Node(2, Empty)))
|
||||
size(xs) == 3
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user