1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 11:04:00 +03:00

Correct omissions in the tests.

This commit is contained in:
Rob Rix 2015-10-22 10:43:20 -04:00
parent d678946fda
commit b7a341b8b1
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ final class DiffTests: XCTestCase {
private func equal(a: DiffTests.Diff, _ b: DiffTests.Diff) -> Bool {
return Free.equals(ifPure: Patch.equals(Cofree.equals(annotation: ==, leaf: ==)), ifRoll: ==)(a, b)
return Free.equals(pure: Patch.equals(Cofree.equals(annotation: ==, leaf: ==)), leaf: ==)(a, b)
}

View File

@ -53,7 +53,7 @@ private func SES(a: [Term], _ b: [Term]) -> [Diff] {
}
private func == (a: [Diff], b: [Diff]) -> Bool {
return a.count == b.count && zip(a, b).lazy.map(Diff.equals(ifPure: Patch.equals(Cofree.equals(annotation: const(true), leaf: ==)), ifRoll: ==)).reduce(true) { $0 && $1 }
return a.count == b.count && zip(a, b).lazy.map(Diff.equals(pure: Patch.equals(Cofree.equals(annotation: const(true), leaf: ==)), leaf: ==)).reduce(true) { $0 && $1 }
}