addon-sdk/source/lib/diffpatcher/test/index.js

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 "use strict";
     3 var diff = require("../diff")
     4 var patch = require("../patch")
     6 exports["test diff"] = require("./diff")
     7 exports["test patch"] = require("./patch")
     9 exports["test patch(a, diff(a, b)) => b"] = function(assert) {
    10   var a = { a: { b: 1 }, c: { d: 2 } }
    11   var b = { a: { e: 3 }, c: { d: 4 } }
    13   assert.deepEqual(patch(a, diff(a, b)), b, "patch(a, diff(a, b)) => b")
    14 }

mercurial