"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const assert = require("assert");
const debug_1 = require("../../../debug");
const fromSpec_1 = require("../../../spec/fromSpec");
const _specs_1 = require("../../../system/_specs");
const system_1 = require("../../util/system");
const spec = require('../../../system/core/common/LoopRepeat/spec.json');
const LoopRepeat = (0, fromSpec_1.fromSpec)(spec, _specs_1.default);
const loopRepeat = new LoopRepeat(system_1.system);
false && (0, debug_1.watchUnitAndLog)(loopRepeat);
false && (0, debug_1.watchGraphAndLog)(loopRepeat);
false && (0, debug_1.watchTreeAndLog)(loopRepeat);
loopRepeat.play();
loopRepeat.setOutputIgnored('current', true);
loopRepeat.push('init', 0);
loopRepeat.push('test', true);
assert.equal(loopRepeat.peakInput('test'), undefined);
assert.equal(loopRepeat.peakOutput('local'), 0);
loopRepeat.push('test', true);
assert.equal(loopRepeat.peakInput('test'), true);
assert.equal(loopRepeat.takeOutput('local'), 0);
assert.equal(loopRepeat.peakInput('test'), undefined);
// infinite loop
// loopRepeat.setInputConstant('test', true)
// loopRepeat.setOutputIgnored('local', true)
// loopRepeat.setOutputIgnored('current', true)
// loopRepeat.push('test', true)
// loopRepeat.push('init', 0)
//# sourceMappingURL=LoopRepeat.js.map