import diff from dw::util::Diff
ns ns0 http://locahost.com
ns ns1 http://acme.com
---
{
    a: diff({a: 1}, {b:1}),
    b: diff({ns0#a: 1}, {ns1#a:1}),
    c: diff([1,2,3], []),
    d: diff([], [1,2,3]),
    e: diff([1,2,3], [1,2,3, 4]),
    f: diff([{a: 1}], [{a: 2}]),
    g: diff({a @(c: 2): 1}, {a @(c: 3): 1}),
    h: diff(true, false),
    i: diff(1, 2),
    j: diff("test", "other test"),
    k: diff(in1, in2),
    l: diff(in1, in3),
    a1: diff({a: 1}, {a:1}),
    b1: diff({ns0#a: 1}, {ns0#a:1}),
    c1: diff([1,2,3], [1,2,3]),
    d1: diff([], []),
    e1: diff(in0, in0),
    f1: diff([{a: 1}], [{a: 1}]),
    g1: diff({a @(c: 2): 1}, {a @(c:2): 1}),
    h1: diff(true, true),
    i1: diff(1, 1),
    j1: diff("other test", "other test"),
    k1: diff({a:1 ,b: 2},{b: 2, a:1}, {unordered: true}),
    l1: [{format: "ssn",data: "ABC"}] diff [{ format: "ssn",data: "ABC"}],
    m1: diff(in4, { product @(id: "1", "type": "tv"): { brand:"Samsung"}}),
    n1: diff({
                       "firstName": "Gary",
                       "lastName": "Nelson",
                       "email": "sampleaccount23@testdata112.com",
                       "address": {
                         "street": "10 S. Main St",
                         "city": "Atlanta",
                         "state": "GA",
                         "country": "US",
                         "postalCode": "10209"
                       },
                       "timestamp": "2010-04-17T15:09:40.51"
                     },
           {
                       "firstName": "Gary",
                       "lastName": "Nelson",
                       "email": "sampleaccount23@testdata112.com",
                       "address": {
                         "street": "7 S. Main St",
                         "city": "Atlanta",
                         "state": "GA",
                         "country": "US",
                         "postalCode": "10209"
                       },
                       "timestamp": "2010-04-17T15:09:30.51"
                    }
             )
}