Login
003-001.th1ish at [752aad3eb7]
Login

File th1ish/unit/003-001.th1ish artifact 1b67ee9c26 part of check-in 752aad3eb7



const f = Fossil.createContext()

var c = f.loadBlob('trunk')
assert 'buffer' === typename c
assert [c.length] > 0
// print(c)

assert catch {f.loadBlob('xyzyz')} inherits api.Exception
c = f.loadBlob(1)
assert 'buffer' === typename c


const diffOpt = object {
    text: true,
    //sbsWidth: 40,
    //html: true,
    inline: true
}
c = f.artifactDiff('prev', 'current', diffOpt) // will diff the manifests, not their contents
assert c inherits api.prototypes.Buffer
assert 'buffer' === typename c
assert c.length() > 0