"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 spec = system_1.system.emptySpec();
const composition0 = new Graph_1.Graph(spec, {}, system_1.system);
false && (0, debug_1.watchUnitAndLog)(composition0);
false && (0, debug_1.watchGraphAndLog)(composition0);
composition0.play();
composition0.addUnitSpec('0', {
    unit: {
        id: _ids_1.ID_IDENTITY,
        input: {
            a: {
                data: '0',
            },
        },
        output: {},
    },
});
composition0.addUnitSpec('1', {
    unit: {
        id: _ids_1.ID_IDENTITY,
        input: {
            a: {
                data: '1',
            },
        },
        output: {},
    },
});
assert.equal(composition0.getUnitPin('0', 'output', 'a').peak(), 0);
assert.equal(composition0.getUnitPin('1', 'output', 'a').peak(), 1);
composition0.addMerge({ '0': { output: { a: true } }, '1': { input: { a: true } } }, '0');
assert.equal(composition0.getUnitPin('1', 'output', 'a').peak(), 0);
//# sourceMappingURL=identity.js.map