1
1
mirror of https://github.com/github/semantic.git synced 2024-12-28 01:11:52 +03:00

Add a wrapper function to compute the SES.

This commit is contained in:
Rob Rix 2015-10-06 13:12:53 -04:00
parent 1ecafbff43
commit 286b91a88d

View File

@ -40,6 +40,10 @@ private let b = Term.In(.Leaf(.Literal("b", [])))
private let c = Term.In(.Leaf(.Literal("c", [])))
private let d = Term.In(.Leaf(.Literal("d", [])))
private func SES(a: [Term], _ b: [Term]) -> [Diff] {
return SES(a, b, equals: ==, recur: { Diff.Pure(Patch.Replace($0, $1)) })
}
@testable import Doubt
import XCTest