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:
parent
67d861839f
commit
290ff8853c
@ -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)) })
|
||||
|
Loading…
Reference in New Issue
Block a user