#!/usr/bin/env node

require('./proof')(1, function (step, tmp, Strata, equal, gather) {
    var fs = require('fs'), strata, value = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTU'
    step(function () {
        strata = new Strata({ directory: tmp, leafSize: 3, branchSize: 3 })
        strata.create(step())
    }, function () {
        strata.mutator(value, step())
    }, function (cursor) {
        step(function () {
            cursor.insert(value, value, ~ cursor.index, step())
        }, function (inserted) {
            cursor.unlock()
        })
    }, function () {
        strata.close(step())
    }, function () {
        strata = new Strata({ directory: tmp, leafSize: 3, branchSize: 3 })
        strata.open(step())
    }, function () {
        gather(step, strata)
    }, function (records) {
        equal(records[0], value, 'done')
        strata.close(step())
    })
})

@@ -51,21 +51,16 @@
 n (step,
- tmp,
  Strata,
@@ -64,21 +64,19 @@
 ta, 
-equal
+tmp
 , gather
 ) %7B%0A
@@ -71,16 +71,23 @@
 , gather
+, equal
 ) %7B%0A    
@@ -93,28 +93,8 @@
  var
- fs = require('fs'),
  str

Tidy `t/coverage/length-adjust.t.js`.