1
1
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:
Rob Rix 2015-10-14 14:03:46 -04:00
parent 79708346e0
commit b8dca6fe2a

View File

@ -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)
}