
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
