Re-format and re-run all acceptance tests.
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
pub fn and_f(self: List<Bool>) -> Bool {
|
||||
when self is {
|
||||
[] ->
|
||||
True
|
||||
[x, ..xs] ->
|
||||
x && and_f(xs)
|
||||
[] -> True
|
||||
[x, ..xs] -> x && and_f(xs)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,10 +11,8 @@ test and_f_1() {
|
||||
|
||||
pub fn or_f(self: List<Bool>) -> Bool {
|
||||
when self is {
|
||||
[] ->
|
||||
False
|
||||
[x, ..xs] ->
|
||||
x || or_f(xs)
|
||||
[] -> False
|
||||
[x, ..xs] -> x || or_f(xs)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user