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:
parent
d678946fda
commit
b7a341b8b1
@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
@ -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 }
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user