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

SESTests uses the constructor conveniences.

This commit is contained in:
Rob Rix 2015-10-09 18:09:15 -04:00
parent 67d861839f
commit 290ff8853c

View File

@ -51,10 +51,10 @@ private func delete(term: Term) -> Diff {
private typealias Term = Fix<Info>
private typealias Diff = Free<Info, Patch<Info>>
private let a = Term.In(.Leaf(.Literal("a", [])))
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 let a = Term.Leaf(.Literal("a", []))
private let b = Term.Leaf(.Literal("b", []))
private let c = Term.Leaf(.Literal("c", []))
private let d = Term.Leaf(.Literal("d", []))
private func SES(a: [Term], _ b: [Term]) -> [Diff] {
return SES(a, b, equals: ==, recur: { Diff.Pure(Patch.Replace($0, $1)) })