#!/usr/bin/env node

// Asserts that log replay will skip over the positions array.

require('./proof')(1, function (step, Strata, tmp, gather, deepEqual, say) {
    var strata
    step(function () {
        strata = new Strata({ directory: tmp, leafSize: 3, branchSize: 3 })
        strata.create(step())
    }, function () {
        strata.mutator('a', step())
    }, function (cursor) {
        step(function () {
            cursor.insert('a', 'a', ~ cursor.index, step())
        }, function () {
            cursor.unlock()
        })
    }, function () {
        gather(step, strata)
    }, function (records) {
        deepEqual(records, [ 'a' ], 'written')
        strata.close(step())
    }, function () {
        strata = new Strata({ directory: tmp, leafSize: 3, branchSize: 3, replay: true })
        strata.open(step())
    }, function () {
        strata.iterator('a', step())
    }, function (cursor) {
        cursor.unlock()
    })
})

@@ -137,25 +137,22 @@
 gather, 
-deepEqual
+assert
 , say) %7B
@@ -621,17 +621,14 @@
     
-deepEqual
+assert
 (rec

Use `assert` in `t/coverage/replay.t.js`.