"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const assert = require("assert");
const Graph_1 = require("../../Class/Graph");
const debug_1 = require("../../debug");
const _ids_1 = require("../../system/_ids");
const system_1 = require("../util/system");
const spec0 = system_1.system.emptySpec();
const composition0 = new Graph_1.Graph(spec0, {}, system_1.system);
false && (0, debug_1.watchUnitAndLog)(composition0);
false && (0, debug_1.watchGraphAndLog)(composition0);
const addId = '0';
composition0.addUnitSpec(addId, {
    unit: {
        id: _ids_1.ID_ADD,
        input: {
            b: {
                constant: true,
                data: '1',
            },
        },
        output: {},
    },
});
composition0.play();
const addUnit = composition0.getUnit(addId);
assert.equal(addUnit.peakInput('b'), 1);
addUnit.push('a', 2);
assert.equal(addUnit.peakOutput('a + b'), 3);
composition0.reset();
assert.equal(addUnit.peakInput('b'), 1);
assert.equal(addUnit.peakInput('a'), undefined);
assert.equal(addUnit.peakOutput('a + b'), undefined);
//# sourceMappingURL=reset.js.map