mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +03:00
Call evaluate with equality.
This commit is contained in:
parent
79708346e0
commit
b8dca6fe2a
@ -86,7 +86,7 @@ extension JSON {
|
||||
|
||||
let arguments = BoundsCheckedArray(array: Process.arguments)
|
||||
if let a = arguments[1].flatMap(JSON.init), b = arguments[2].flatMap(JSON.init) {
|
||||
let diff = Algorithm<JSONLeaf, JSON.Diff>(a.term, b.term).evaluate()
|
||||
let diff = Algorithm<Term, Diff>(a.term, b.term).evaluate(==)
|
||||
if let JSON = NSString(data: diff.JSON.serialize(), encoding: NSUTF8StringEncoding) {
|
||||
print(JSON)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user