"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const assert = require("assert");
const debug_1 = require("../../../../debug");
const Wait_1 = require("../../../../system/f/control/Wait");
const system_1 = require("../../../util/system");
const wait = new Wait_1.default(system_1.system);
wait.play();
false && (0, debug_1.watchUnitAndLog)(wait);
wait.push('a', 1);
wait.push('b', 1);
assert.equal(wait.take('a'), 1);
assert.equal(wait.peakInput('a'), undefined);
assert.equal(wait.peakInput('b'), undefined);
assert.equal(wait.peakOutput('a'), undefined);
wait.setInputConstant('a', true);
wait.push('a', 2);
assert.equal(wait.take('a'), undefined);
wait.push('b', 'foo');
assert.equal(wait.take('a'), 2);
assert.equal(wait.take('a'), undefined);
//# sourceMappingURL=Wait.js.map