#!/usr/bin/env node

require('./proof')(1, function (step, Strata, tmp, serialize, equal, ok) {
    var strata
    step(function () {
        serialize(__dirname + '/fixtures/get.json', tmp, step())
    }, function () {
        strata = new Strata({ directory: tmp, leafSize: 3, branchSize: 3 })
        strata.open(step())
    }, function () {
        strata.iterator(strata.key('a'), step())
    }, function (cursor) {
        step(function () {
            cursor.get(cursor.offset, step())
        }, function (got) {
            cursor.unlock()
            equal(got, 'a', 'got')
        })
    }, function () {
        strata.close(step())
    })
})

#!/usr/bin/env node

require('./proof')(1, function (step, Strata, tmp, serialize, assert) {
    var strata
    step(function () {
        serialize(__dirname + '/fixtures/get.json', tmp, step())
    }, function () {
        strata = new Strata({ directory: tmp, leafSize: 3, branchSize: 3 })
        strata.open(step())
    }, function () {
        strata.iterator(strata.key('a'), step())
    }, function (cursor) {
        step(function () {
            cursor.get(cursor.offset, step())
        }, function (got) {
            cursor.unlock()
            assert(got, 'a', 'got')
        })
    }, function () {
        strata.close(step())
    })
})

Use `assert` in `t/basics/key.t.js`.