
var simpleturing = require('../'),
    assert = require('assert');

var machine = simpleturing('s0', {
	's0': {
		0: [0, 's0', 1],
		1: [0, 's1', 1]
	},
	's1': {
		0: [0, 'stop'],
		1: [0, 's1', 1]
	}
});

assert.ok(machine);

var result = machine.run([0, 0, 1, 1, 1, 0]);

assert.ok(result);
assert.ok(Array.isArray(result));
assert.equal(result.length, 6);
assert.equal(result[0], 0);
assert.equal(result[1], 0);
assert.equal(result[2], 0);
assert.equal(result[3], 0);
assert.equal(result[4], 0);
assert.equal(result[5], 0);



var simpleturing = require('../'),
    assert = require('assert');

var machine = simpleturing('s0', {
	's0': {
		0: [0, 's0', 1],
		1: [0, 's1', 1]
	},
	's1': {
		0: [0, 'stop'],
		1: [0, 's1', 1]
	}
});

assert.ok(machine);

var result = machine.run([0, 0, 1, 1, 1, 0]);

assert.ok(result);
assert.ok(Array.isArray(result));
assert.equal(result.length, 6);
assert.deepEqual(result, [0,0,0,0,0,0]);

Refactor test to use assert.deepEqual for arrays
Refactor test to use assert.deepEqual for arrays
