require('proof')(6, require('cadence')(prove))

function prove (async, assert) {
    var stream = require('stream')
    var Queue = require('../queue')
    var Chunk = require('prolific.chunk')
    var queue
    var count = 0
    var expected = [
        '% 1 0 aaaaaaaa 811c9dc5 1\n',
        '% 1 1 811c9dc5 fdaf7437 6\n1\n2\n3\n',
        '% 1 0 aaaaaaaa 811c9dc5 1\n'
    ]
    var writable = {
        write: function (buffer, callback) {
            assert(buffer.toString(), expected.shift(), 'chunk ' + (++count))
            this.wait = callback
        },
        end: function () {
        }
    }
    async(function () {
        queue = new Queue(1, new stream.PassThrough)
        queue.close()
        queue.setPipe(writable)
    }, function () {
        queue = new Queue(1, new stream.PassThrough)
        queue.setPipe(writable)
        queue.push(1)
        queue.push(2)
        queue.push(3)
    }, function () {
        while (writable.wait != null) {
            var wait = [writable.wait, writable.wait = null][0]
            wait()
        }
        queue.exit()
        queue.exit()
    }, function () {
        var stderr = new stream.PassThrough
        queue = new Queue(1, stderr)
        queue.setPipe(writable)
        queue.push(1)
        queue.exit()
        queue.close()
        var chunk = stderr.read().toString()
        assert(chunk, '% 1 0 aaaaaaaa 811c9dc5 1\n% 1 1 811c9dc5 05eb07a2 2\n1\n% 1 2 05eb07a2 aaaaaaaa 0\n', 'exit')
        queue.push(1)
        assert(stderr.read(), null, 'no write after exit')
        var callback, count = 0
        queue = new Queue(1, stderr)
        queue.setPipe({
            write: function (buffer, _callback) {
                if (count++ == 2) {
                    callback = _callback
                } else {
                    _callback()
                }
            },
            end: function () {
            }
        })
        queue.push(1)
        queue.push(2)
        queue.exit()
        assert(stderr.read().toString(),
            '% 1 0 aaaaaaaa 811c9dc5 2\n% 1 2 811c9dc5 87f2900d 2\n2\n% 1 3 87f2900d aaaaaaaa 0\n', 'exit')
        callback()
    })
}

@@ -64,22 +64,20 @@
 (async, 
-assert
+okay
 ) %7B%0A    
@@ -447,22 +447,20 @@
         
-assert
+okay
 (buffer.
@@ -1349,22 +1349,20 @@
         
-assert
+okay
 (chunk, 
@@ -1479,38 +1479,36 @@
 push(1)%0A        
-assert
+okay
 (stderr.read(), 
@@ -1979,14 +1979,12 @@
     
-assert
+okay
 (std

Rename `assert` to `okay`.