"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/SumN/spec.json');
const SumN = (0, fromSpec_1.fromSpec)(spec, _specs_1.default, {});
const sumN = new SumN(system_1.system);
false && (0, debug_1.watchUnitAndLog)(sumN);
false && (0, debug_1.watchGraphAndLog)(sumN);
false && (0, debug_1.watchGraphAndLog)(sumN.getUnit('sumnfrom'));
sumN.play();
sumN.push('n', 2);
sumN.push('a', 5);
sumN.push('a', 6);
assert.equal(sumN.take('sum'), 11);
assert.equal(sumN.take('sum'), undefined);
//# sourceMappingURL=SumN.js.map